test/unit/pagination/paged_paginator_test.rb in jsonapi-resources-0.6.0 vs test/unit/pagination/paged_paginator_test.rb in jsonapi-resources-0.6.1
- old
+ new
@@ -182,12 +182,12 @@
assert_equal 4, links_params.size
assert_equal 5, links_params['first']['size']
assert_equal 1, links_params['first']['number']
- assert_equal 5, links_params['previous']['size']
- assert_equal 3, links_params['previous']['number']
+ assert_equal 5, links_params['prev']['size']
+ assert_equal 3, links_params['prev']['number']
assert_equal 5, links_params['next']['size']
assert_equal 5, links_params['next']['number']
assert_equal 5, links_params['last']['size']
@@ -208,12 +208,12 @@
assert_equal 3, links_params.size
assert_equal 5, links_params['first']['size']
assert_equal 1, links_params['first']['number']
- assert_equal 5, links_params['previous']['size']
- assert_equal 9, links_params['previous']['number']
+ assert_equal 5, links_params['prev']['size']
+ assert_equal 9, links_params['prev']['number']
assert_equal 5, links_params['last']['size']
assert_equal 10, links_params['last']['number']
end
@@ -231,11 +231,11 @@
assert_equal 3, links_params.size
assert_equal 5, links_params['first']['size']
assert_equal 1, links_params['first']['number']
- assert_equal 5, links_params['previous']['size']
- assert_equal 10, links_params['previous']['number']
+ assert_equal 5, links_params['prev']['size']
+ assert_equal 10, links_params['prev']['number']
assert_equal 5, links_params['last']['size']
assert_equal 10, links_params['last']['number']
end
end