repository_controller_spec.rb 499 Bytes
Newer Older
1
2
require 'spec_helper'

3
describe Projects::Settings::RepositoryController do
4
  let(:project) { create(:project_empty_repo, :public) }
5
6
7
  let(:user) { create(:user) }

  before do
8
    project.add_maintainer(user)
9
10
11
12
13
14
15
    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

16
      expect(response).to have_gitlab_http_status(200)
17
18
19
20
      expect(response).to render_template(:show)
    end
  end
end