We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc8acb6 commit d17fe2bCopy full SHA for d17fe2b
spec/unit/views/components/paginated_collection_spec.rb
@@ -174,9 +174,9 @@
174
end
175
176
177
- context "when view last page of collection that has multiple pages" do
+ context "when viewing the last page of a collection that has multiple pages" do
178
let(:collection) do
179
- posts = 81.times.inject([]) {|m, _| m << Post.new }
+ posts = [Post.new] * 81
180
Kaminari.paginate_array(posts).page(3).per(30)
181
182
0 commit comments