提交 1dbf32d8 编写于 作者: K Kia Mei Somabes

Remove before hook for spec

上级 c03bc268
......@@ -11,13 +11,11 @@ describe Projects::CommitsController do
describe "GET commits_root" do
context "no ref is provided" do
before do
it 'should redirect to the default branch of the project' do
get(:commits_root,
namespace_id: project.namespace,
project_id: project)
end
it 'should redirect to the default branch of the project' do
expect(response).to redirect_to project_commits_path(project)
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册