diff --git a/test/form_builder/wrapper_test.rb b/test/form_builder/wrapper_test.rb index fd2dc8c4..f07e473b 100644 --- a/test/form_builder/wrapper_test.rb +++ b/test/form_builder/wrapper_test.rb @@ -161,7 +161,7 @@ class WrapperTest < ActionView::TestCase test 'custom wrappers can have full error message on attributes' do swap_wrapper :default, custom_wrapper_with_full_error do with_form_for @user, :name - assert_select 'span.error', "Name cannot be blank" + assert_select 'span.error', "Super User Name! cannot be blank" end end diff --git a/test/support/models.rb b/test/support/models.rb index da25b967..9801a7a2 100644 --- a/test/support/models.rb +++ b/test/support/models.rb @@ -204,7 +204,7 @@ class User def self.human_attribute_name(attribute, options = {}) case attribute - when 'name' + when 'name', :name 'Super User Name!' when 'description' 'User Description!'