diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2016-12-30 22:27:51 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-01-19 00:19:35 +0300 |
commit | 1ee4f98694f482099de9f21dc957071e53395313 (patch) | |
tree | e04958c79acc57c21c16fa3c9b21a359b03b2450 /spec/controllers/projects/settings/integrations_controller_spec.rb | |
parent | 9f0d794513d2ce1c990e61f4d21efe1dcad845fd (diff) |
Fixed spinach feature tests for the services and hooks controllers
Added a test for the integrations controller
Diffstat (limited to 'spec/controllers/projects/settings/integrations_controller_spec.rb')
-rw-r--r-- | spec/controllers/projects/settings/integrations_controller_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/controllers/projects/settings/integrations_controller_spec.rb b/spec/controllers/projects/settings/integrations_controller_spec.rb new file mode 100644 index 00000000000..7a0ad4ae236 --- /dev/null +++ b/spec/controllers/projects/settings/integrations_controller_spec.rb @@ -0,0 +1,20 @@ +require ('spec_helper') + +describe Projects::Settings::IntegrationsController do + let(:project) { create(:project, :public) } + let(:user) { create(:user) } + + before do + project.team << [user, :master] + 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 |