summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2023-12-26 15:47:43 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2023-12-26 15:47:43 +0000
commita9b7f12900ff7811d056a848fd90df50e57767f6 (patch)
treeccaabe63f646c64e9f8b477536953298f36554b2 /test
parent5a5c621f43ab70331494e3e84527ba72484b416b (diff)
downloadredmine-a9b7f12900ff7811d056a848fd90df50e57767f6.tar.gz
redmine-a9b7f12900ff7811d056a848fd90df50e57767f6.zip
Fixes that diff of a javascript file in repository module is not displayed with layout in Rails 7.1
(#39747, #36320). git-svn-id: https://svn.redmine.org/redmine/trunk@22563 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/integration/routing/repositories_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb
index f0d2e9cdb..5b1a4aa74 100644
--- a/test/integration/routing/repositories_test.rb
+++ b/test/integration/routing/repositories_test.rb
@@ -56,7 +56,7 @@ class RoutingRepositoriesTest < Redmine::RoutingTest
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', :format => 'html'
- should_route 'GET /projects/foo/repository/foo/revisions/2457/diff' => 'repositories#diff', :id => 'foo', :repository_id => 'foo', :rev => '2457'
+ should_route 'GET /projects/foo/repository/foo/revisions/2457/diff' => 'repositories#diff', :id => 'foo', :repository_id => 'foo', :rev => '2457', :format => 'html'
%w(show entry raw annotate).each do |action|
@paths.each do |path|
@@ -66,7 +66,7 @@ class RoutingRepositoriesTest < Redmine::RoutingTest
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
+ :id => 'foo', :repository_id => 'foo', :rev => '2457', :path => path, :format => 'html'
end
end
@@ -85,7 +85,7 @@ class RoutingRepositoriesTest < Redmine::RoutingTest
end
@paths.each do |path|
should_route "GET /projects/foo/repository/svn/diff/#{path}" => "repositories#diff",
- :id => 'foo', :repository_id => 'svn', :path => path
+ :id => 'foo', :repository_id => 'svn', :path => path, :format => 'html'
end
end