Commit ecb4e970 authored by eugielimpin's avatar eugielimpin

Track namespace as subject and sticky experiment to current user

parent 1bd8a690
......@@ -19,8 +19,9 @@ class Projects::Ci::PipelineEditorController < Projects::ApplicationController
end
def setup_walkthrough_experiment
experiment(:pipeline_editor_walkthrough, actor: current_user) do |e|
experiment(:pipeline_editor_walkthrough, namespace: @project.namespace, sticky_to: current_user) do |e|
e.candidate {}
e.record!
end
end
end
......@@ -42,13 +42,10 @@ RSpec.describe Projects::Ci::PipelineEditorController do
project.add_developer(user)
end
it 'tracks the assignment', :experiment do
expect(experiment(:pipeline_editor_walkthrough))
.to track(:assignment)
.with_context(actor: user)
.on_next_instance
subject(:action) { show_request }
show_request
it_behaves_like 'tracks assignment and records the subject', :pipeline_editor_walkthrough, :namespace do
subject { project.namespace }
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