diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 14:59:07 +0300 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/controllers/registrations | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/controllers/registrations')
-rw-r--r-- | spec/controllers/registrations/experience_levels_controller_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/controllers/registrations/experience_levels_controller_spec.rb b/spec/controllers/registrations/experience_levels_controller_spec.rb index 4be67f29107..015daba8682 100644 --- a/spec/controllers/registrations/experience_levels_controller_spec.rb +++ b/spec/controllers/registrations/experience_levels_controller_spec.rb @@ -19,7 +19,7 @@ RSpec.describe Registrations::ExperienceLevelsController do context 'with an authenticated user' do before do sign_in(user) - stub_experiment_for_user(onboarding_issues: true) + stub_experiment_for_subject(onboarding_issues: true) end it { is_expected.to have_gitlab_http_status(:ok) } @@ -28,7 +28,7 @@ RSpec.describe Registrations::ExperienceLevelsController do context 'when not part of the onboarding issues experiment' do before do - stub_experiment_for_user(onboarding_issues: false) + stub_experiment_for_subject(onboarding_issues: false) end it { is_expected.to have_gitlab_http_status(:not_found) } @@ -47,12 +47,12 @@ RSpec.describe Registrations::ExperienceLevelsController do context 'with an authenticated user' do before do sign_in(user) - stub_experiment_for_user(onboarding_issues: true) + stub_experiment_for_subject(onboarding_issues: true) end context 'when not part of the onboarding issues experiment' do before do - stub_experiment_for_user(onboarding_issues: false) + stub_experiment_for_subject(onboarding_issues: false) end it { is_expected.to have_gitlab_http_status(:not_found) } @@ -90,7 +90,7 @@ RSpec.describe Registrations::ExperienceLevelsController do let(:issues_board) { build(:board, id: 123, project: project) } before do - stub_experiment_for_user( + stub_experiment_for_subject( onboarding_issues: true, default_to_issues_board: default_to_issues_board_xp? ) |