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
|
|
|
|
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
|