diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-13 17:12:08 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-13 17:12:08 +0300 |
commit | 1be454e71272f1a6489883e9d4b27c40c6277591 (patch) | |
tree | 52f770d173449327fae33f28f4b95188cf70bf7d /spec/services/create_deployment_service_spec.rb | |
parent | b35e62491316ff92379a26b504144d3a2f2a11bf (diff) |
Fix envs and deploys specs related to build retry
Diffstat (limited to 'spec/services/create_deployment_service_spec.rb')
-rw-r--r-- | spec/services/create_deployment_service_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/services/create_deployment_service_spec.rb b/spec/services/create_deployment_service_spec.rb index cf0a18aacec..50679408dca 100644 --- a/spec/services/create_deployment_service_spec.rb +++ b/spec/services/create_deployment_service_spec.rb @@ -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 |