diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-26 18:10:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-26 18:10:57 +0300 |
commit | ede9464fd957582e4e0232f70113942b08ddfe78 (patch) | |
tree | 186b5e12e612810dbf8d4209126737726dd23289 /spec/controllers/projects | |
parent | 04f9cef437b65b4a62624936a37a99cfbfb4d61c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers/projects')
-rw-r--r-- | spec/controllers/projects/pipelines_controller_spec.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/controllers/projects/pipelines_controller_spec.rb b/spec/controllers/projects/pipelines_controller_spec.rb index 0e6b5e84d85..19f9e8b780b 100644 --- a/spec/controllers/projects/pipelines_controller_spec.rb +++ b/spec/controllers/projects/pipelines_controller_spec.rb @@ -274,15 +274,15 @@ RSpec.describe Projects::PipelinesController do end describe 'GET #index' do - context 'pipeline_empty_state_templates experiment' do - before do - stub_application_setting(auto_devops_enabled: false) - end + before do + stub_application_setting(auto_devops_enabled: false) + end - it 'tracks the view', :experiment do + context 'pipeline_empty_state_templates experiment' do + it 'tracks the assignment', :experiment do expect(experiment(:pipeline_empty_state_templates)) - .to track(:view, value: project.namespace_id) - .with_context(actor: user) + .to track(:assignment) + .with_context(namespace: project.root_ancestor) .on_next_instance get :index, params: { namespace_id: project.namespace, project_id: project } @@ -290,9 +290,9 @@ RSpec.describe Projects::PipelinesController do end context 'code_quality_walkthrough experiment' do - it 'tracks the view', :experiment do + it 'tracks the assignment', :experiment do expect(experiment(:code_quality_walkthrough)) - .to track(:view, property: project.root_ancestor.id.to_s) + .to track(:assignment) .with_context(namespace: project.root_ancestor) .on_next_instance |