mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 22:36:02 +01:00
Don't generate pagination links with params.
git-svn-id: http://svn.redmine.org/redmine/trunk@15627 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -135,11 +135,11 @@ class IssuesTest < Redmine::IntegrationTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_pagination_links_on_index_without_project_id_in_url
|
||||
def test_pagination_links_should_preserve_query_parameters
|
||||
with_settings :per_page_options => '2' do
|
||||
get '/issues', :project_id => 'ecookbook'
|
||||
|
||||
assert_select 'a[href=?]', '/projects/ecookbook/issues?page=2', :text => '2'
|
||||
get '/projects/ecookbook/issues?foo=bar'
|
||||
|
||||
assert_select 'a[href=?]', '/projects/ecookbook/issues?foo=bar&page=2', :text => '2'
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user