Skip to content

Commit

Permalink
play with ci
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Dec 1, 2024
1 parent 79b185d commit 4660294
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/support/api/endpoints/it_behaves_like_a_cursor_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@
end
end

it 'paginates over the entire collection' do
fit 'paginates over the entire collection', :focus do
models_ids = []
next_cursor = { size: 3 }
loop do
puts 'YALLAH'
puts model_ps
puts next_cursor.merge(cursor_params)

response = client.send(model_ps, next_cursor.merge(cursor_params))
puts response.inspect

models_ids.concat(response.map { |instance| instance._links.self._url.gsub("http://example.org/api/#{model_ps}/", '') })
break unless response._links[:next]

Expand Down

0 comments on commit 4660294

Please sign in to comment.