Skip to content

Instantly share code, notes, and snippets.

@noel
Created June 30, 2011 22:20
Show Gist options
  • Save noel/1057425 to your computer and use it in GitHub Desktop.
Save noel/1057425 to your computer and use it in GitHub Desktop.
Failures:
1) User should not allow for multiple users with the same username
Failure/Error: Factory(:user, :username=>"gomezn")
ActiveRecord::RecordInvalid:
Validation failed: Name has already been taken
# ./spec/models/user_spec.rb:6
# ./spec/models/user_spec.rb:35
2) User should have ldap
Failure/Error: Factory(:user, :username=>"gomezn")
ActiveRecord::RecordInvalid:
Validation failed: Name has already been taken
# ./spec/models/user_spec.rb:6
# ./spec/models/user_spec.rb:50
Finished in 3.84 seconds
6 examples, 2 failures
Failed examples:
rspec ./spec/models/user_spec.rb:34 # User should not allow for multiple users with the same username
rspec ./spec/models/user_spec.rb:49 # User should have ldap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment