Commit 7f160267 authored by Jay's avatar Jay Committed by Sean McGivern

More specific assertion for controller spec

I'm adding a more specific/accurate argument assertion
as it was raised that the spec was failing in development.

I'm not sure how this started failing, or why its not failing in master
parent a762ccc6
......@@ -312,11 +312,11 @@ RSpec.describe Registrations::GroupsController do
subject
end
it 'selectivly tracks for the force_company_trial experiment', :experiment do
it 'selectively tracks for the force_company_trial experiment', :experiment do
wrapped_experiment(experiment(:force_company_trial)) do |e|
expect(e.context.value).to include(user: user)
expect(e).to receive(:track).with(:create_group, namespace: an_instance_of(Group))
expect(e).not_to receive(:track).with(:create_trial, namespace: an_instance_of(Group))
expect(e).to receive(:track).with(:create_group, namespace: an_instance_of(Group), user: user)
expect(e).not_to receive(:track).with(:create_trial, namespace: an_instance_of(Group), user: user)
end
subject
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment