Commit f7dcaf66 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'jswain_force_company_trial_more_specific_assertions' into 'master'

More specific assertion for controller spec

See merge request gitlab-org/gitlab!69118
parents f3b6d5e5 7f160267
......@@ -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