Skip to content
代码片段 群组 项目
提交 6910b3e0 编辑于 作者: drew cimino's avatar drew cimino
浏览文件

Remove usage of let_it_be to avoid spec-ordering failures

上级 4475eb8f
No related branches found
No related tags found
无相关合并请求
......@@ -5,9 +5,12 @@
RSpec.describe Ci::CreateDownstreamPipelineService, '#execute' do
include Ci::SourcePipelineHelpers
let_it_be(:user) { create(:user) }
# Using let_it_be on user and projects for these specs can cause
# spec-ordering failures due to the project-based permissions
# associating them. They should be recreated every time.
let(:user) { create(:user) }
let(:upstream_project) { create(:project, :repository) }
let_it_be(:downstream_project, refind: true) { create(:project, :repository) }
let(:downstream_project) { create(:project, :repository) }
let!(:upstream_pipeline) do
create(:ci_pipeline, :running, project: upstream_project)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册