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:
parent
32fb711d96
commit
b9ad9bc5a6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue