summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/controllers/projects/commits_controller_spec.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/controllers/projects/commits_controller_spec.rb b/spec/controllers/projects/commits_controller_spec.rb
index 2e0457378f0..f90df441512 100644
--- a/spec/controllers/projects/commits_controller_spec.rb
+++ b/spec/controllers/projects/commits_controller_spec.rb
@@ -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