diff options
Diffstat (limited to 'test/integration/routing/attachments_test.rb')
-rw-r--r-- | test/integration/routing/attachments_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb index cf417cee5..096591f2d 100644 --- a/test/integration/routing/attachments_test.rb +++ b/test/integration/routing/attachments_test.rb @@ -20,7 +20,8 @@ require File.expand_path('../../../test_helper', __FILE__) class RoutingAttachmentsTest < Redmine::RoutingTest def test_attachments should_route 'GET /attachments/1' => 'attachments#show', :id => '1' - should_route 'GET /attachments/1/filename.ext' => 'attachments#show', :id => '1', :filename => 'filename.ext' + should_route 'GET /attachments/1/filename.ext' => 'attachments#show', :id => '1', :filename => 'filename.ext', :format => 'html' + should_route 'GET /attachments/1/filename.txt' => 'attachments#show', :id => '1', :filename => 'filename.txt', :format => 'html' should_route 'GET /attachments/download/1' => 'attachments#download', :id => '1' should_route 'GET /attachments/download/1/filename.ext' => 'attachments#download', :id => '1', :filename => 'filename.ext' |