diff options
author | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-24 15:45:24 +0800 |
---|---|---|
committer | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-25 06:30:16 +0800 |
commit | 1dbf32d84bd73037675cd179a7c8a74d980f3939 (patch) | |
tree | 65e4aa0e410e9f60bcdc8f55f4686fec8eabfb90 | |
parent | c03bc268be7769ceeb9d1738d6b887a7c866e2a0 (diff) | |
download | gitlab-ce-1dbf32d84bd73037675cd179a7c8a74d980f3939.tar.gz |
Remove before hook for spec
-rw-r--r-- | spec/controllers/projects/commits_controller_spec.rb | 4 |
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 |