Remove before hook for spec

This commit is contained in:
Kia Mei Somabes 2018-07-24 15:45:24 +08:00
parent c03bc268be
commit 1dbf32d84b

View file

@ -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