about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorGomasy <nyan@gomasy.jp>2019-11-18 01:09:42 +0900
committerEugen Rochko <eugen@zeonfederated.com>2019-11-17 17:09:41 +0100
commit5a2c0707f163f14565d186db48bf0b4fe0b05b4f (patch)
treef274670f3520d60b3e8347132f9cd7511b771345 /spec
parentdf15a2cd375da328f16537655aca15c8dd3030e5 (diff)
Support min_id-based pagination for bookmarks (#12381)
* Support min_id-based pagination for bookmarks

* Fix spec
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/api/v1/bookmarks_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/api/v1/bookmarks_controller_spec.rb b/spec/controllers/api/v1/bookmarks_controller_spec.rb
index 79601b6e6..d7c5847b0 100644
--- a/spec/controllers/api/v1/bookmarks_controller_spec.rb
+++ b/spec/controllers/api/v1/bookmarks_controller_spec.rb
@@ -64,7 +64,7 @@ RSpec.describe Api::V1::BookmarksController, type: :controller do
           get :index, params: { limit: 1 }
 
           expect(response.headers['Link'].find_link(['rel', 'next']).href).to eq "http://test.host/api/v1/bookmarks?limit=1&max_id=#{bookmark.id}"
-          expect(response.headers['Link'].find_link(['rel', 'prev']).href).to eq "http://test.host/api/v1/bookmarks?limit=1&since_id=#{bookmark.id}"
+          expect(response.headers['Link'].find_link(['rel', 'prev']).href).to eq "http://test.host/api/v1/bookmarks?limit=1&min_id=#{bookmark.id}"
         end
 
         it 'does not add pagination headers if not necessary' do