Remove before hook for spec
This commit is contained in:
parent
c03bc268be
commit
1dbf32d84b
1 changed files with 1 additions and 3 deletions
|
@ -11,13 +11,11 @@ describe Projects::CommitsController do
|
||||||
|
|
||||||
describe "GET commits_root" do
|
describe "GET commits_root" do
|
||||||
context "no ref is provided" do
|
context "no ref is provided" do
|
||||||
before do
|
it 'should redirect to the default branch of the project' do
|
||||||
get(:commits_root,
|
get(:commits_root,
|
||||||
namespace_id: project.namespace,
|
namespace_id: project.namespace,
|
||||||
project_id: project)
|
project_id: project)
|
||||||
end
|
|
||||||
|
|
||||||
it 'should redirect to the default branch of the project' do
|
|
||||||
expect(response).to redirect_to project_commits_path(project)
|
expect(response).to redirect_to project_commits_path(project)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue