Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/onboarding_experiment_helper_spec.rb')
-rw-r--r--spec/helpers/onboarding_experiment_helper_spec.rb38
1 files changed, 0 insertions, 38 deletions
diff --git a/spec/helpers/onboarding_experiment_helper_spec.rb b/spec/helpers/onboarding_experiment_helper_spec.rb
deleted file mode 100644
index cada91bff3c..00000000000
--- a/spec/helpers/onboarding_experiment_helper_spec.rb
+++ /dev/null
@@ -1,38 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-
-describe OnboardingExperimentHelper, type: :helper do
- describe '.allow_access_to_onboarding?' do
- context "when we're not gitlab.com or dev env" do
- it 'returns false' do
- allow(::Gitlab).to receive(:dev_env_or_com?).and_return(false)
-
- expect(helper.allow_access_to_onboarding?).to be(false)
- end
- end
-
- context "when we're gitlab.com or dev env" do
- before do
- allow(::Gitlab).to receive(:dev_env_or_com?).and_return(true)
- end
-
- context 'and the :user_onboarding feature is not enabled' do
- it 'returns false' do
- stub_feature_flags(user_onboarding: false)
-
- expect(helper.allow_access_to_onboarding?).to be(false)
- end
- end
-
- context 'and the :user_onboarding feature is enabled' do
- it 'returns true' do
- stub_feature_flags(user_onboarding: true)
- allow(helper).to receive(:current_user).and_return(create(:user))
-
- expect(helper.allow_access_to_onboarding?).to be(true)
- end
- end
- end
- end
-end