- assert user.errors.invalid?(:email)
- assert user.errors.invalid?(:pass_crypt)
- assert user.errors.invalid?(:display_name)
- assert user.errors.invalid?(:email)
- assert !user.errors.invalid?(:home_lat)
- assert !user.errors.invalid?(:home_lon)
- assert !user.errors.invalid?(:home_zoom)
+ assert user.errors[:email].any?
+ assert user.errors[:pass_crypt].any?
+ assert user.errors[:display_name].any?
+ assert user.errors[:email].any?
+ assert !user.errors[:home_lat].any?
+ assert !user.errors[:home_lon].any?
+ assert !user.errors[:home_zoom].any?