diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-07 17:11:48 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-07 17:11:48 +0000 |
commit | e84afa8bed23ac0192ac795459434a0c48ba4108 (patch) | |
tree | 84a66b7b9d5e3848d4ab3133e6bce39231be0b60 /spec/controllers | |
parent | a41bff62e469b1d5d521648260e122a7110594cc (diff) | |
parent | 12fe94c388ae9ec73e34852ef7d7b90f2f347df7 (diff) | |
download | gitlab-ce-e84afa8bed23ac0192ac795459434a0c48ba4108.tar.gz |
Merge branch '26732-combine-deploy-keys-and-push-rules-and-mirror-repository-and-protect-branches-settings-pages' into 'master'
Resolve "Combine Deploy Keys and Push Rules and Mirror Repository and Protect Branches settings pages"
Closes #26732
See merge request !8731
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/settings/repository_controller_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/controllers/projects/settings/repository_controller_spec.rb b/spec/controllers/projects/settings/repository_controller_spec.rb new file mode 100644 index 00000000000..f73471f8ca8 --- /dev/null +++ b/spec/controllers/projects/settings/repository_controller_spec.rb @@ -0,0 +1,20 @@ +require 'spec_helper' + +describe Projects::Settings::RepositoryController do + let(:project) { create(:project_empty_repo, :public) } + let(:user) { create(:user) } + + before do + project.add_master(user) + sign_in(user) + end + + describe 'GET show' do + it 'renders show with 200 status code' do + get :show, namespace_id: project.namespace, project_id: project + + expect(response).to have_http_status(200) + expect(response).to render_template(:show) + end + end +end |