1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

Skip the whole test when the version doesn't match

from @eitoball's comment: https://github.com/amatsuda/kaminari/pull/449#issuecomment-26684361
This commit is contained in:
Akira Matsuda 2013-11-10 03:31:50 +09:00
parent 32fb711d96
commit b9ad9bc5a6

View file

@ -51,9 +51,9 @@ if defined? ActiveRecord
end
end
context "when count receives options" do
it "should return a distinct set by column for rails < 4.1" do
if ActiveRecord::VERSION::STRING < "4.1.0"
if ActiveRecord::VERSION::STRING < '4.1.0'
context 'when count receives options' do
it 'should return a distinct set by column for rails < 4.1' do
User.page(1).count(:name, :distinct => true).should == 4
end
end