Skip to content

Commit

Permalink
Use rspec filters for mongodb version
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Feb 6, 2015
1 parent c0719e6 commit 0488d2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/mongoid/contextual/atomic_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
end
end

describe "#bit" do
describe "#bit", :if => mongodb_version > "2.5" do

let!(:depeche_mode) do
Band.create(likes: 60)
Expand Down Expand Up @@ -137,7 +137,7 @@
expect(smiths.reload.likes).to eq(10)
end
end
end if mongodb_version > "2.5"
end

describe "#inc" do

Expand Down

0 comments on commit 0488d2c

Please sign in to comment.