diff options
author | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-24 08:04:16 +0800 |
---|---|---|
committer | Kia Mei Somabes <kssomabes@up.edu.ph> | 2018-07-24 08:04:16 +0800 |
commit | c03bc268be7769ceeb9d1738d6b887a7c866e2a0 (patch) | |
tree | 5919a9b21cb6d56e84002619c6329d9b57d96427 /spec | |
parent | 3b4734ce714f2e112241453dd04f0273a9d362ec (diff) | |
download | gitlab-ce-c03bc268be7769ceeb9d1738d6b887a7c866e2a0.tar.gz |
Transfer to commits_controller, add test, and update changelog
Diffstat (limited to 'spec')
-rw-r--r-- | spec/controllers/projects/commits_controller_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/controllers/projects/commits_controller_spec.rb b/spec/controllers/projects/commits_controller_spec.rb index 55ed276f96b..2e0457378f0 100644 --- a/spec/controllers/projects/commits_controller_spec.rb +++ b/spec/controllers/projects/commits_controller_spec.rb @@ -9,6 +9,20 @@ describe Projects::CommitsController do project.add_master(user) end + describe "GET commits_root" do + context "no ref is provided" do + before 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 + end + describe "GET show" do render_views |