Permalink
Browse files

test that anchor parameter can be used in pagination links

  • Loading branch information...
1 parent 4d2da56 commit 4368fe36f960738398462257dca1c013916c7977 @mislav committed Apr 23, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/view_test.rb
View
@@ -190,6 +190,11 @@ def test_adding_additional_parameters
assert_links_match /foo=bar/
end
+ def test_adding_anchor_parameter
+ paginate({}, :params => { :anchor => 'anchor' })
+ assert_links_match /#anchor$/
+ end
+
def test_removing_arbitrary_parameters
@request.params :foo => 'bar'
paginate({}, :params => { :foo => nil })

0 comments on commit 4368fe3

Please sign in to comment.