Unit Test Failing #84

Closed
ganeshkumar opened this Issue Dec 24, 2009 · 2 comments

3 participants

@ganeshkumar

I am writing unit test for user model with authlogic but authlogic expecting some column values . I am getting some weird failures which I didn't expect. Please see the below output while running the unit tests.

I am waiting for your reply

Thanks in Advance

1) Failure:
test: User should ensure email has a length between 6 and 320. (UserTest)
[]:
Expected errors to include "^email is too short (min is 6 characters)" when email is set to "xxxxx", got errors: password_confirmation is too short (minimum is 7 characters) (nil)password_confirmation can't be blank (nil)password_confirmation is too short (minimum is 7 characters) (nil)gender can't be blank (nil)login ^Username can't be blank (nil)password is too short (minimum is 4 characters) (nil)password can't be blank (nil)password is too short (minimum is 7 characters) (nil)email is too short (minimum is 6 characters) ("xxxxx")email should look like an email address. ("xxxxx")email is too short (minimum is 6 characters) ("xxxxx")

@rmoriz

(min is 6 characters) != (minimum is 6 characters)

?

@tiegz tiegz closed this Jun 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment