mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
Fixed tests targeting Rails ~> 4.0.0.
This commit is contained in:
parent
0ab86e2204
commit
bcb39fa03d
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ if defined? ActiveRecord
|
||||||
|
|
||||||
context "when total_count receives options" do
|
context "when total_count receives options" do
|
||||||
it "should return a distinct total count for rails ~> 4.0.0" do
|
it "should return a distinct total count for rails ~> 4.0.0" do
|
||||||
if ActiveRecord::VERSION::STRING < "4.1.0"
|
if ActiveRecord::VERSION::STRING > "4.0.0" && ActiveRecord::VERSION::STRING < "4.1.0"
|
||||||
User.page(1).total_count(:name, :distinct => true).should == 4
|
User.page(1).total_count(:name, :distinct => true).should == 4
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -53,7 +53,7 @@ if defined? ActiveRecord
|
||||||
|
|
||||||
context "when count receives options" do
|
context "when count receives options" do
|
||||||
it "should return a distinct set by column for rails ~> 4.0.0" do
|
it "should return a distinct set by column for rails ~> 4.0.0" do
|
||||||
if ActiveRecord::VERSION::STRING < "4.1.0"
|
if ActiveRecord::VERSION::STRING > "4.0.0" && ActiveRecord::VERSION::STRING < "4.1.0"
|
||||||
User.page(1).count(:name, :distinct => true).should == 4
|
User.page(1).count(:name, :distinct => true).should == 4
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue