summaryrefslogtreecommitdiffstats
path: root/test/functional/attachments_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-10-04 13:20:11 +0000
committerGo MAEDA <maeda@farend.jp>2018-10-04 13:20:11 +0000
commitdcc7ecb34a61d55193572ca8bc66c9859f3d6e49 (patch)
tree8f6e5c9e422a9c4fc2e2a7c46bfd054e54e2441c /test/functional/attachments_controller_test.rb
parent28c231473f98a4b184204dd53cbeee1e0d655853 (diff)
downloadredmine-dcc7ecb34a61d55193572ca8bc66c9859f3d6e49.tar.gz
redmine-dcc7ecb34a61d55193572ca8bc66c9859f3d6e49.zip
Attachments prev/next navigation (#29395).
Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17567 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r--test/functional/attachments_controller_test.rb10
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