Permalink
Browse files

Fix failure

  • Loading branch information...
1 parent eaa8cf1 commit 04a0ed866bbe7d734530017c5041b51fcd02a1ca @durran durran committed Feb 24, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/mongoid/validations/uniqueness_spec.rb
@@ -2041,7 +2041,7 @@
end
let!(:person) do
- Person.create(ssn: "132-11-1111")
+ Person.create(ssn: "132-11-1111", username: "testing-1234")
end
after do
@@ -2050,7 +2050,7 @@
it "transfers the options to the cloned session" do
expect {
- Person.with(safe: true).create!(ssn: "132-11-1111")
+ Person.with(safe: true).create!(ssn: "132-11-1111", username: "testing-121111")
}.to raise_error(Moped::Errors::OperationFailure)
end
end

0 comments on commit 04a0ed8

Please sign in to comment.