提交 1be454e7 编写于 作者: G Grzegorz Bizon

Fix envs and deploys specs related to build retry

上级 b35e6249
......@@ -155,7 +155,7 @@ describe Environment, models: true do
end
describe '#stop_with_action!' do
let(:user) { create(:user) }
let(:user) { create(:admin) }
subject { environment.stop_with_action!(user) }
......
......@@ -234,7 +234,11 @@ describe CreateDeploymentService, services: true do
context 'when build is retried' do
it_behaves_like 'does create environment and deployment' do
let(:deployable) { Ci::Build.retry(build) }
before do
project.team << [user, :developer]
end
let(:deployable) { Ci::Build.retry(build, user) }
subject { deployable.success }
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册