diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-02-28 11:49:32 -0600 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-03-06 09:47:44 -0600 |
commit | 43958926c5310642f2fc0c6f72952004d2ca5089 (patch) | |
tree | e22837cc90314fc245058a9c764796d48dd1df11 /spec/controllers | |
parent | a29517dd0c6515121a2f42e08ad011415a3d8618 (diff) | |
download | gitlab-ce-43958926c5310642f2fc0c6f72952004d2ca5089.tar.gz |
Added delegations to comply with the new rubocop rules
Also fixed the deploy_keys view and moved the code from the repository_helper
to the repository_controller
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/settings/repository_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/projects/settings/repository_controller_spec.rb b/spec/controllers/projects/settings/repository_controller_spec.rb index 65f7bb34f4a..77faf96033d 100644 --- a/spec/controllers/projects/settings/repository_controller_spec.rb +++ b/spec/controllers/projects/settings/repository_controller_spec.rb @@ -1,11 +1,11 @@ require 'spec_helper' -describe Projects::Settings::IntegrationsController do +describe Projects::Settings::RepositoryController do let(:project) { create(:empty_project, :public) } let(:user) { create(:user) } before do - project.team << [user, :master] + project.add_master(user) sign_in(user) end |