2017-01-16 10:11:25 -05:00
|
|
|
require 'spec_helper'
|
2016-12-30 14:27:51 -05:00
|
|
|
|
|
|
|
describe Projects::Settings::IntegrationsController do
|
2017-08-02 15:55:11 -04:00
|
|
|
let(:project) { create(:project, :public) }
|
2017-01-16 10:11:25 -05:00
|
|
|
let(:user) { create(:user) }
|
2016-12-30 14:27:51 -05:00
|
|
|
|
|
|
|
before do
|
2017-12-22 03:18:28 -05:00
|
|
|
project.add_master(user)
|
2016-12-30 14:27:51 -05:00
|
|
|
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
|
|
|
|
|
2017-10-19 14:28:19 -04:00
|
|
|
expect(response).to have_gitlab_http_status(200)
|
2016-12-30 14:27:51 -05:00
|
|
|
expect(response).to render_template(:show)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|