I'm seeing the following errors when I run my specs:
Validation failed: Email should look like an email address
It looks as though the permission factory (permission.rb:8) is attempting to create an
admin user which is failing authlogic's email validation.
From tracing it through, factory girl seems to execute the super type definition BEFORE
the sub type therefore before u.login 'admin' can be run, the user is created with
no login and thus the email is set to "(a)example.host". Note the empty user
name.
1) DeploymentsController should allow RESTful delete of a single deployment
Failure/Error: @admin_permission = Factory :admin_permission
ActiveRecord::RecordInvalid:
Validation failed: Email should look like an email address.
# ./spec/factories/permission.rb:8
# ./spec/controllers/deployments_controller_spec.rb:6