mirror of
https://github.com/heartcombo/devise.git
synced 2026-04-28 03:00:29 -04: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user