If you use tests of the form:
User.accessible_attributes.should =~ [:email, :password]
you'll get an extra attribute called "" if you set
config.active_record.whitelist_attributes = true, and thus a specfailure. Annoying.
Instead, you can add this to your
# Require attr_accessible to be used on all models for mass-assignment to work ActiveRecord::Base.instance_eval do attr_accessible # none - and this method doesn't whitelist an attribute with the name "" end