summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/repositories_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/routing/repositories_test.rb')
-rw-r--r--test/integration/routing/repositories_test.rb20
1 files changed, 14 insertions, 6 deletions
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb
index fe5124ac7..44e5f99e4 100644
--- a/test/integration/routing/repositories_test.rb
+++ b/test/integration/routing/repositories_test.rb
@@ -55,26 +55,34 @@ class RoutingRepositoriesTest < Redmine::RoutingTest
should_route 'GET /projects/foo/repository/foo/revisions.atom' => 'repositories#revisions', :id => 'foo', :repository_id => 'foo', :format => 'atom'
should_route 'GET /projects/foo/repository/foo/revisions/2457' => 'repositories#revision', :id => 'foo', :repository_id => 'foo', :rev => '2457'
- should_route 'GET /projects/foo/repository/foo/revisions/2457/show' => 'repositories#show', :id => 'foo', :repository_id => 'foo', :rev => '2457'
+ should_route 'GET /projects/foo/repository/foo/revisions/2457/show' => 'repositories#show', :id => 'foo', :repository_id => 'foo', :rev => '2457', :format => 'html'
should_route 'GET /projects/foo/repository/foo/revisions/2457/diff' => 'repositories#diff', :id => 'foo', :repository_id => 'foo', :rev => '2457'
- %w(show diff entry raw annotate).each do |action|
+ %w(show entry raw annotate).each do |action|
@paths.each do |path|
should_route "GET /projects/foo/repository/foo/revisions/2457/#{action}/#{path}" => "repositories##{action}",
- :id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path
+ :id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path, :format => 'html'
end
end
+ @paths.each do |path|
+ should_route "GET /projects/foo/repository/foo/revisions/2457/diff/#{path}" => "repositories#diff",
+ :id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path
+ end
end
def test_repositories_non_revisions_path_with_repository_id
- should_route 'GET /projects/foo/repository/svn/changes' => 'repositories#changes', :id => 'foo', :repository_id => 'svn'
+ should_route 'GET /projects/foo/repository/svn/changes' => 'repositories#changes', :id => 'foo', :repository_id => 'svn', :format => 'html'
- %w(changes diff browse entry raw annotate).each do |action|
+ %w(changes browse entry raw annotate).each do |action|
@paths.each do |path|
should_route "GET /projects/foo/repository/svn/#{action}/#{path}" => "repositories##{action}",
- :id => 'foo', :repository_id => 'svn', :path => path
+ :id => 'foo', :repository_id => 'svn', :path => path, :format => 'html'
end
end
+ @paths.each do |path|
+ should_route "GET /projects/foo/repository/svn/diff/#{path}" => "repositories#diff",
+ :id => 'foo', :repository_id => 'svn', :path => path
+ end
end
def test_repositories_related_issues_with_repository_id