diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-12-17 11:59:07 +0000 |
commit | 8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca (patch) | |
tree | 544930fb309b30317ae9797a9683768705d664c4 /spec/controllers/groups_controller_spec.rb | |
parent | 4b1de649d0168371549608993deac953eb692019 (diff) | |
download | gitlab-ce-8b573c94895dc0ac0e1d9d59cf3e8745e8b539ca.tar.gz |
Add latest changes from gitlab-org/gitlab@13-7-stable-eev13.7.0-rc42
Diffstat (limited to 'spec/controllers/groups_controller_spec.rb')
-rw-r--r-- | spec/controllers/groups_controller_spec.rb | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/spec/controllers/groups_controller_spec.rb b/spec/controllers/groups_controller_spec.rb index 55833ee3aad..939c36a98b2 100644 --- a/spec/controllers/groups_controller_spec.rb +++ b/spec/controllers/groups_controller_spec.rb @@ -333,7 +333,7 @@ RSpec.describe GroupsController, factory_default: :keep do context 'and the user is part of the control group' do before do - stub_experiment_for_user(onboarding_issues: false) + stub_experiment_for_subject(onboarding_issues: false) end it 'tracks the event with the "created_namespace" action with the "control_group" property', :snowplow do @@ -350,7 +350,7 @@ RSpec.describe GroupsController, factory_default: :keep do context 'and the user is part of the experimental group' do before do - stub_experiment_for_user(onboarding_issues: true) + stub_experiment_for_subject(onboarding_issues: true) end it 'tracks the event with the "created_namespace" action with the "experimental_group" property', :snowplow do @@ -400,15 +400,6 @@ RSpec.describe GroupsController, factory_default: :keep do sign_in(user) end - it 'lists only incidents and issues' do - incident = create(:incident, project: project) - create(:quality_test_case, project: project) - - get :issues, params: { id: group.to_param } - - expect(assigns(:issues)).to match_array([issue_1, issue_2, incident]) - end - context 'sorting by votes' do it 'sorts most popular issues' do get :issues, params: { id: group.to_param, sort: 'upvotes_desc' } |