spec/trailblazer/finder/adapters/kaminari_spec.rb in trailblazer-finder-0.50.0 vs spec/trailblazer/finder/adapters/kaminari_spec.rb in trailblazer-finder-0.70.0
- old
+ new
@@ -57,10 +57,10 @@
end
it "accepts per_page as a parameter" do
10.times { |i| Product.create name: "product_#{i}" }
finder = new_finder page: 2, per_page: 4 do
- adapter "ActiveRecord"
+ adapter "ActiveRecord"
paginator "Kaminari"
paging per_page: 5, min_per_page: 2, max_per_page: 8
end
expect(finder.result.first.id).to eq 5