[rspec-users] rspec causing validates_presence_of to validate twice?

David Chelimsky dchelimsky at gmail.com
Wed Oct 17 17:40:11 EDT 2007

On 10/17/07, Steve <vertebrate at gmail.com> wrote:
> I'm running through rake(rake spec:models to be exact). The error is:
> 'User should be invalid without a password when creating' FAILED
> expected: "can't be blank",
>      got: ["can't be blank", "can't be blank"] (using ==)
> ./spec/models/user_spec.rb:64:
> So there isn't an actual ruby error, it's just the errors collection not
> matching.

Would you please try running it like this:

script/spec spec -b

and this

script/spec spec/models/user_spec.rb -b

and let us know if it's still happening?

More information about the rspec-users mailing list