Commit 6d4e4385 authored by James Fargher's avatar James Fargher

Merge branch '329492-reorganize-learn-gitlab-specs' into 'master'

Reorganize learn gitlab specs

See merge request gitlab-org/gitlab!60729
parents 9b779fe3 00c8161a
......@@ -85,10 +85,14 @@ RSpec.describe LearnGitlabHelper do
it { is_expected.to eq(result) }
end
end
context 'when not signed in' do
it { is_expected.to eq(false) }
context 'when not signed in' do
before do
stub_experiment_for_subject(learn_gitlab_a: true, learn_gitlab_b: true)
end
it { is_expected.to eq(false) }
end
end
......@@ -118,10 +122,14 @@ RSpec.describe LearnGitlabHelper do
it { is_expected.to eq(result) }
end
end
context 'when not signed in' do
it { is_expected.to eq(nil) }
context 'when not signed in' do
before do
stub_experiment_for_subject(learn_gitlab_a: true, learn_gitlab_b: true)
end
it { is_expected.to eq(nil) }
end
end
end
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