This commit is contained in:
Yuki Nishijima 2014-05-06 20:34:23 -07:00
parent 29fdcfa886
commit 039a89b035
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ describe Kaminari::PaginatableArray do
end end
context "total_count == size of the given array" do context "total_count == size of the given array" do
subject { Kaminari.paginate_array((1..15).to_a, total_count: 15).page(1).per(10) } subject { Kaminari.paginate_array((1..15).to_a, :total_count => 15).page(1).per(10) }
it { should have(10).items } it { should have(10).items }
its(:first) { should == 1 } its(:first) { should == 1 }
@ -159,7 +159,7 @@ describe Kaminari::PaginatableArray do
end end
context "total_count < size of the given array" do context "total_count < size of the given array" do
subject { Kaminari.paginate_array((1..25).to_a, total_count: 15).page(2).per(10) } subject { Kaminari.paginate_array((1..25).to_a, :total_count => 15).page(2).per(10) }
it { should have(5).items } it { should have(5).items }
its(:first) { should == 11 } its(:first) { should == 11 }