diff options
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r-- | test/functional/attachments_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 016ed28fa..a5d4c1705 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -287,6 +287,16 @@ class AttachmentsControllerTest < Redmine::ControllerTest assert_response 404 end + def test_show_renders_pagination + get :show, :params => { :id => 5, :type => 'inline' } + assert_response :success + + assert_select 'ul.pages li.next', :text => /next/i + assert_select 'ul.pages li.previous', :text => /previous/i + + set_tmp_attachments_directory + end + def test_download_text_file get :download, :params => { :id => 4 |