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:
parent
0652117c79
commit
ac3a25bf2e
1 changed files with 2 additions and 6 deletions
|
@ -17,14 +17,10 @@ class DatabaseAuthenticatableTest < ActiveSupport::TestCase
|
||||||
email = 'Foo@Bar1.com'
|
email = 'Foo@Bar1.com'
|
||||||
confirmation = 'Foo@Bar1.com'
|
confirmation = 'Foo@Bar1.com'
|
||||||
attributes = valid_attributes(:email => email, :email_confirmation => confirmation)
|
attributes = valid_attributes(:email => email, :email_confirmation => confirmation)
|
||||||
|
|
||||||
user = UserWithVirtualAttributes.new(attributes)
|
user = UserWithVirtualAttributes.new(attributes)
|
||||||
|
|
||||||
assert_equal confirmation, user.email_confirmation
|
assert_equal confirmation, user.email_confirmation
|
||||||
|
|
||||||
assert_nothing_raised ActiveRecord::RecordInvalid do
|
|
||||||
user.save!
|
user.save!
|
||||||
end
|
|
||||||
|
|
||||||
assert_equal confirmation.downcase, user.email_confirmation
|
assert_equal confirmation.downcase, user.email_confirmation
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue