summaryrefslogtreecommitdiff
path: root/spec/helpers/learn_gitlab_helper_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/learn_gitlab_helper_spec.rb')
-rw-r--r--spec/helpers/learn_gitlab_helper_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/helpers/learn_gitlab_helper_spec.rb b/spec/helpers/learn_gitlab_helper_spec.rb
index 9d13fc65de7..ffc2bb31b8f 100644
--- a/spec/helpers/learn_gitlab_helper_spec.rb
+++ b/spec/helpers/learn_gitlab_helper_spec.rb
@@ -176,6 +176,19 @@ RSpec.describe LearnGitlabHelper do
)
})
end
+
+ it 'calls experiment with expected context & options' do
+ allow(helper).to receive(:current_user).and_return(user)
+
+ expect(helper).to receive(:experiment).with(
+ :change_continuous_onboarding_link_urls,
+ namespace: namespace,
+ actor: user,
+ sticky_to: namespace
+ )
+
+ learn_gitlab_data
+ end
end
end
end