Permalink
Browse files

Change error notification message default lookup when locale not found

  • Loading branch information...
1 parent b3e2039 commit e5541af50d282884b85e39b5f831af8abf170a08 @carlosantoniodasilva carlosantoniodasilva committed Apr 28, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/simple_form/error_notification.rb
  2. +1 −1 test/form_builder/error_notification_test.rb
@@ -41,7 +41,7 @@ def translate_error_notification
lookups = []
lookups << :"#{object_name}"
lookups << :default_message
- lookups << "Some errors were found, please take a look:"
+ lookups << "Please review the problems below:"
I18n.t(lookups.shift, :scope => :"simple_form.error_notification", :default => lookups)
end
end
@@ -23,7 +23,7 @@ def with_error_notification_for(object, options={}, &block)
test 'error notification is generated when the object has some error' do
with_error_notification_for @user
- assert_select 'p.error_notification', 'Some errors were found, please take a look:'
+ assert_select 'p.error_notification', 'Please review the problems below:'
end
test 'error notification uses I18n based on model to generate the notification message' do

0 comments on commit e5541af

Please sign in to comment.