Skip to content

Commit

Permalink
Skip the whole test when the version doesn't match
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Nov 9, 2013
1 parent 32fb711 commit b9ad9bc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
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
Expand Down

0 comments on commit b9ad9bc

Please sign in to comment.