diff options
Diffstat (limited to 'spec/lib/gitlab/tracking_spec.rb')
-rw-r--r-- | spec/lib/gitlab/tracking_spec.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/lib/gitlab/tracking_spec.rb b/spec/lib/gitlab/tracking_spec.rb index efb07d9dc95..2e65f98a085 100644 --- a/spec/lib/gitlab/tracking_spec.rb +++ b/spec/lib/gitlab/tracking_spec.rb @@ -28,17 +28,13 @@ describe Gitlab::Tracking do end it 'enables features using feature flags' do - stub_feature_flags(additional_snowplow_tracking: true) - allow(Feature).to receive(:enabled?).with( - :additional_snowplow_tracking, - '_group_' - ).and_return(false) + stub_feature_flags(additional_snowplow_tracking: :__group__) addition_feature_fields = { formTracking: false, linkClickTracking: false } - expect(subject.snowplow_options('_group_')).to include(addition_feature_fields) + expect(subject.snowplow_options(:_group_)).to include(addition_feature_fields) end end |