diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-15 13:12:07 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-15 13:12:07 +0300 |
commit | 3ba65185127da07cd82d346fdcf001878b97fd31 (patch) | |
tree | 27020a040970bd6da0b3ca882a3c7a486788a1d3 /spec/services/create_deployment_service_spec.rb | |
parent | 9c37a26cc744ff4479f2b3b62c15d8b0e62f728d (diff) |
Prefer using `project.add_developer` in specs
Diffstat (limited to 'spec/services/create_deployment_service_spec.rb')
-rw-r--r-- | spec/services/create_deployment_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/create_deployment_service_spec.rb b/spec/services/create_deployment_service_spec.rb index 50679408dca..6fb4d517115 100644 --- a/spec/services/create_deployment_service_spec.rb +++ b/spec/services/create_deployment_service_spec.rb @@ -235,7 +235,7 @@ describe CreateDeploymentService, services: true do context 'when build is retried' do it_behaves_like 'does create environment and deployment' do before do - project.team << [user, :developer] + project.add_developer(user) end let(:deployable) { Ci::Build.retry(build, user) } |