mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ruby 1.9 compat: fix test error masked by old String#each behavior
This commit is contained in:
parent
5e1ceb153c
commit
1c54ca4f75
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class ActiveRecordValidationsI18nTests < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_errors_full_messages_translates_human_attribute_name_for_model_attributes
|
||||
@topic.errors.instance_variable_set :@errors, { 'title' => 'empty' }
|
||||
@topic.errors.instance_variable_set :@errors, { 'title' => ['empty'] }
|
||||
I18n.expects(:translate).with(:"topic.title", :default => ['Title'], :scope => [:activerecord, :attributes], :count => 1).returns('Title')
|
||||
@topic.errors.full_messages :locale => 'en-US'
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue