Skip to content
代码片段 群组 项目
提交 8189bdb7 编辑于 作者: rliu-gl's avatar rliu-gl
浏览文件

Add addtional assignment event for experiment

An additional assignment event is needed for the project_templates_during_registration experiment
上级 2d8f1f0a
No related branches found
No related tags found
无相关合并请求
......@@ -86,6 +86,9 @@ def track_event(action)
end
def track_project_registration_submission(project)
experiment(:project_templates_during_registration, user: current_user).track(:assignment,
namespace: project.namespace)
experiment_project_templates_during_registration(
project,
:successfully_submitted_form,
......
......@@ -187,6 +187,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
expect(experiment).not_to receive(:track).with(
......@@ -202,6 +203,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
expect(experiment).to receive(:track).with(
......@@ -220,6 +222,7 @@
it 'tracks submission event' do
expect(experiment).to receive(:publish)
expect(experiment).to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).to receive(:track).with(:successfully_submitted_form, label: 'trial_registration')
post_create
......@@ -259,6 +262,7 @@
it 'does not track submission event' do
expect(experiment).to receive(:publish)
expect(experiment).not_to receive(:track).with(:assignment, namespace: an_instance_of(Group))
expect(experiment).not_to receive(:track).with(:successfully_submitted_form, label: 'free_registration')
post_create
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册