Skip to content
代码片段 群组 项目
未验证 提交 b9c26bc6 编辑于 作者: Terri Chu's avatar Terri Chu 提交者: GitLab
浏览文件

Merge branch '428071-updates-on-mirror-should-reflect' into 'master'

No related branches found
No related tags found
无相关合并请求
...@@ -162,9 +162,12 @@ ...@@ -162,9 +162,12 @@
context 'when licensed' do context 'when licensed' do
before do before do
stub_licensed_features(repository_mirrors: true) stub_licensed_features(repository_mirrors: true)
stub_ee_application_setting(elasticsearch_indexing?: true)
end end
it 'sets the correct attributes' do it 'sets the correct attributes' do
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(an_instance_of(User))
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(an_instance_of(Project))
expect(created_project).to be_persisted expect(created_project).to be_persisted
expect(created_project.mirror).to be true expect(created_project.mirror).to be true
expect(created_project.mirror_user_id).to eq(user.id) expect(created_project.mirror_user_id).to eq(user.id)
......
...@@ -83,9 +83,11 @@ ...@@ -83,9 +83,11 @@
before do before do
stub_licensed_features(repository_mirrors: true) stub_licensed_features(repository_mirrors: true)
stub_ee_application_setting(elasticsearch_indexing?: true)
end end
it 'sets mirror attributes' do it 'sets mirror attributes' do
expect(::Elastic::ProcessBookkeepingService).to receive(:track!).with(project).once
result = update_project(project, user, opts) result = update_project(project, user, opts)
expect(result).to eq(status: :success) expect(result).to eq(status: :success)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册