mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Fix tests, remove whitespace and update CHANGELOG.
This commit is contained in:
parent
dcee6413f4
commit
219fbc0056
2 changed files with 10 additions and 7 deletions
|
@ -3,6 +3,7 @@
|
|||
* enhancements
|
||||
* Add :defaults and :format support on router
|
||||
* Add simple form generators
|
||||
* Better localization for devise_error_messages! (by github.com/zedtux)
|
||||
|
||||
== 1.4.0
|
||||
|
||||
|
|
|
@ -10,14 +10,17 @@ class DeviseHelperTest < ActionController::IntegrationTest
|
|||
} } },
|
||||
:activerecord => { :models => { :user => "utilisateur" } }
|
||||
}
|
||||
|
||||
|
||||
I18n.locale = 'fr'
|
||||
end
|
||||
|
||||
|
||||
teardown do
|
||||
I18n.locale = 'en'
|
||||
end
|
||||
|
||||
test 'test errors.messages.not_saved with single error from i18n' do
|
||||
|
||||
get new_user_registration_path
|
||||
|
||||
|
||||
fill_in 'password', :with => 'new_user123'
|
||||
fill_in 'password confirmation', :with => 'new_user123'
|
||||
click_button 'Sign up'
|
||||
|
@ -25,10 +28,10 @@ class DeviseHelperTest < ActionController::IntegrationTest
|
|||
assert_have_selector '#error_explanation'
|
||||
assert_contain "Erreur lors de l'enregistrement de 'utilisateur': 1 erreur"
|
||||
end
|
||||
|
||||
|
||||
test 'test errors.messages.not_saved with multiple errors from i18n' do
|
||||
get new_user_registration_path
|
||||
|
||||
|
||||
fill_in 'email', :with => 'invalid_email'
|
||||
fill_in 'password', :with => 'new_user123'
|
||||
fill_in 'password confirmation', :with => 'new_user321'
|
||||
|
@ -37,5 +40,4 @@ class DeviseHelperTest < ActionController::IntegrationTest
|
|||
assert_have_selector '#error_explanation'
|
||||
assert_contain "Erreur lors de l'enregistrement de 'utilisateur': 2 erreurs"
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Reference in a new issue