diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-24 21:11:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-24 21:11:28 +0300 |
commit | 22dc7bdafcf442b96ace849341fb87bca7160614 (patch) | |
tree | 6721da756b46eb4f5c6c85a08f57e794b2da6f79 /spec/experiments/application_experiment_spec.rb | |
parent | 958d8a85d32fece017eac7d99bf28860b01a49d8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/experiments/application_experiment_spec.rb')
-rw-r--r-- | spec/experiments/application_experiment_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/experiments/application_experiment_spec.rb b/spec/experiments/application_experiment_spec.rb index 3803fa10ab3..2595512eec3 100644 --- a/spec/experiments/application_experiment_spec.rb +++ b/spec/experiments/application_experiment_spec.rb @@ -82,6 +82,10 @@ RSpec.describe ApplicationExperiment, :experiment do end end + it "can exclude from within the block" do + expect(described_class.new('namespaced/stub') { |e| e.exclude! }).to be_excluded + end + describe "tracking events", :snowplow do it "doesn't track if we shouldn't track" do allow(subject).to receive(:should_track?).and_return(false) |