2015-03-01 23:15:59 -05:00
|
|
|
require('spec_helper')
|
|
|
|
|
|
|
|
describe Projects::ProtectedBranchesController do
|
|
|
|
describe "GET #index" do
|
|
|
|
let(:project) { create(:project_empty_repo, :public) }
|
2017-04-05 13:59:46 -04:00
|
|
|
|
2016-07-25 14:16:19 -04:00
|
|
|
it "redirects empty repo to projects page" do
|
2017-02-23 18:55:01 -05:00
|
|
|
get(:index, namespace_id: project.namespace.to_param, project_id: project)
|
2015-03-01 23:15:59 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|