Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKia Mei Somabes <kssomabes@up.edu.ph>2018-07-24 03:04:16 +0300
committerKia Mei Somabes <kssomabes@up.edu.ph>2018-07-24 03:04:16 +0300
commitc03bc268be7769ceeb9d1738d6b887a7c866e2a0 (patch)
tree5919a9b21cb6d56e84002619c6329d9b57d96427 /spec/controllers
parent3b4734ce714f2e112241453dd04f0273a9d362ec (diff)
Transfer to commits_controller, add test, and update changelog
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/commits_controller_spec.rb14
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