2017-02-21 16:37:00 -05:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2017-02-28 12:49:32 -05:00
|
|
|
describe Projects::Settings::RepositoryController do
|
2017-03-01 11:15:46 -05:00
|
|
|
let(:project) { create(:project_empty_repo, :public) }
|
2017-02-21 16:37:00 -05:00
|
|
|
let(:user) { create(:user) }
|
|
|
|
|
|
|
|
before do
|
2017-02-28 12:49:32 -05:00
|
|
|
project.add_master(user)
|
2017-02-21 16:37:00 -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
|
|
|
|
|
|
|
|
expect(response).to have_http_status(200)
|
|
|
|
expect(response).to render_template(:show)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|