diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-16 14:27:51 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-06-16 14:27:51 +0000 |
commit | 4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75 (patch) | |
tree | d0e69f33679828abe1402d260a5c41938a9d44f8 /test/functional/repositories_cvs_controller_test.rb | |
parent | 794a2a0180ed2d2801be4146ac59799747683b3d (diff) | |
download | redmine-4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75.tar.gz redmine-4137ba8e816c9e8c1782181e5bf1cb0d0ad09d75.zip |
Removes repository routes without repository_id (#26522).
git-svn-id: http://svn.redmine.org/redmine/trunk@17386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_cvs_controller_test.rb')
-rw-r--r-- | test/functional/repositories_cvs_controller_test.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb index c9f26719a..d2b12386d 100644 --- a/test/functional/repositories_cvs_controller_test.rb +++ b/test/functional/repositories_cvs_controller_test.rb @@ -86,6 +86,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :show, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['images'])[:param] } assert_response :success @@ -105,6 +106,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :show, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['images'])[:param], :rev => 1 } @@ -124,6 +126,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :entry, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param] } assert_response :success @@ -139,6 +142,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :entry, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param], :rev => 2 } @@ -155,7 +159,8 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :entry, :params => { :id => PRJ_ID, - :path => repository_path_hash(['sources', 'zzz.c'])[:param] + :repository_id => @repository.id, + :path => repository_path_hash(['sources', 'zzz.c'])[:param] } assert_select 'p#errorExplanation', :text => /The entry or revision was not found in the repository/ end @@ -167,6 +172,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :entry, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param], :format => 'raw' } @@ -180,6 +186,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :entry, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['sources'])[:param] } assert_response :success @@ -194,6 +201,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest ['inline', 'sbs'].each do |dt| get :diff, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :rev => 3, :type => dt } @@ -212,6 +220,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest ['inline', 'sbs'].each do |dt| get :diff, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :rev => 1, :type => dt } @@ -232,6 +241,7 @@ class RepositoriesCvsControllerTest < Redmine::RepositoryControllerTest assert_equal NUM_REV, @repository.changesets.count get :annotate, :params => { :id => PRJ_ID, + :repository_id => @repository.id, :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param] } assert_response :success |