1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00

Remove nothing raised assertion

Let the test raise if that is the case, no need for assert that nothing
was raised.

Hopefully fix the build 
This commit is contained in:
Carlos Antonio da Silva 2012-12-04 17:48:49 -02:00
parent 0652117c79
commit ac3a25bf2e

View file

@ -17,14 +17,10 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
email = 'Foo@Bar1.com'
confirmation = 'Foo@Bar1.com'
attributes = valid_attributes(:email => email, :email_confirmation => confirmation)
user = UserWithVirtualAttributes.new(attributes)
assert_equal confirmation, user.email_confirmation
assert_nothing_raised ActiveRecord::RecordInvalid do
user.save!
end
user.save!
assert_equal confirmation.downcase, user.email_confirmation
end