Skip to content

Commit

Permalink
Fix 1.8 failures
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Apr 14, 2012
1 parent e349461 commit df9e11f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/functional/mongoid/validations/uniqueness_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@

before do
Dictionary.validates_uniqueness_of :name
Dictionary.default_scope(Dictionary.where(year: 1990))
Dictionary.default_scope(Dictionary.where(:year => 1990))
end

after do
Expand All @@ -144,11 +144,11 @@
context "when the attribute is not unique" do

before do
Dictionary.create(name: "Oxford")
Dictionary.create(:name => "Oxford")
end

let(:dictionary) do
Dictionary.new(name: "Oxford")
Dictionary.new(:name => "Oxford")
end

it "returns false" do
Expand Down

0 comments on commit df9e11f

Please sign in to comment.