debian-mirror-gitlab/spec/controllers/projects/protected_branches_controller_spec.rb

11 lines
318 B
Ruby
Raw Normal View History

2015-04-26 12:48:37 +05:30
require('spec_helper')
describe Projects::ProtectedBranchesController do
describe "GET #index" do
let(:project) { create(:project_empty_repo, :public) }
2016-09-13 17:45:13 +05:30
it "redirects empty repo to projects page" do
2015-04-26 12:48:37 +05:30
get(:index, namespace_id: project.namespace.to_param, project_id: project.to_param)
end
end
end