Upstream sync
This commit is contained in:
@@ -205,5 +205,22 @@ RSpec.describe Analytics do
|
||||
|
||||
described_class.new(user, account, analytics_backend).track_create_project(user_agent: "Mozilla Firefox", user_ip: "0.0.0.0")
|
||||
end
|
||||
|
||||
it "tracks event with user_id and 'Contract Template Created', account, account_id, user_agent, ip" do
|
||||
expect(analytics_backend).to receive(:track).with(
|
||||
{
|
||||
user_id: user.id,
|
||||
event: "Contract Template Created",
|
||||
properties: {
|
||||
account: "Courter Pint Brewery",
|
||||
account_id: user.primary_account.id,
|
||||
user_agent: "Mozilla Firefox",
|
||||
ip: "0.0.0.0",
|
||||
},
|
||||
}
|
||||
)
|
||||
|
||||
described_class.new(user, account, analytics_backend).track_create_contract_template(user_agent: "Mozilla Firefox", user_ip: "0.0.0.0")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user