Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix failures

  • Loading branch information...
commit f1435babf46fbde9a2c965b44fe989e2cb6fa019 1 parent eabb04f
@durran durran authored
View
1  spec/app/models/person.rb
@@ -29,6 +29,7 @@ class Person
field :i, as: :inte, type: Integer
field :a, as: :array, type: Array
field :desc, localize: true
+ field :username, default: -> { "arthurnn#{rand(0..10)}" }
index age: 1
index addresses: 1
View
4 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: "random-121312")
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: "another1234")
}.to raise_error(Moped::Errors::OperationFailure)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.