summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 9bb600eff..484880cc7 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -305,6 +305,15 @@ class IssuesControllerTest < ActionController::TestCase
assert_response :success
end
+ def test_index_should_omit_page_param_in_export_links
+ get :index, :page => 2
+ assert_response :success
+ assert_select 'a.atom[href=/issues.atom]'
+ assert_select 'a.csv[href=/issues.csv]'
+ assert_select 'a.pdf[href=/issues.pdf]'
+ assert_select 'form#csv-export-form[action=/issues.csv]'
+ end
+
def test_index_csv
get :index, :format => 'csv'
assert_response :success