diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-03 12:32:39 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-03 12:32:39 +0200 |
commit | 72307940bb04d29dc751adb5e76330d2ce45e9ce (patch) | |
tree | e7a3441115e60118d428999aed6164b782a213a3 /spec/controllers | |
parent | 738bf2c23891467dbc9c74d08223fd3c4e432ae7 (diff) | |
download | gitlab-ce-72307940bb04d29dc751adb5e76330d2ce45e9ce.tar.gz |
Improve code style related to protected actions
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/builds_controller_spec.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/controllers/projects/builds_controller_spec.rb b/spec/controllers/projects/builds_controller_spec.rb index 3bf03c88ff5..3ce23c17cdc 100644 --- a/spec/controllers/projects/builds_controller_spec.rb +++ b/spec/controllers/projects/builds_controller_spec.rb @@ -260,10 +260,8 @@ describe Projects::BuildsController do end describe 'POST play' do - let(:project) { create(:project, :public) } - before do - project.add_developer(user) + project.add_master(user) sign_in(user) post_play |