diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-25 18:16:21 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-25 18:16:21 -0700 |
commit | 1c54ca4f75f9c761ee0f721c38cc4f315ac5ee01 (patch) | |
tree | 26de481e27cf44cdf8c1b6c37051b8588167d0af /activerecord/test | |
parent | 5e1ceb153c6f0445ec8925e9077859d963118eaf (diff) | |
download | rails-1c54ca4f75f9c761ee0f721c38cc4f315ac5ee01.tar.gz rails-1c54ca4f75f9c761ee0f721c38cc4f315ac5ee01.tar.bz2 rails-1c54ca4f75f9c761ee0f721c38cc4f315ac5ee01.zip |
Ruby 1.9 compat: fix test error masked by old String#each behavior
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/validations_i18n_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/validations_i18n_test.rb b/activerecord/test/cases/validations_i18n_test.rb index 881f219112..c353cbb078 100644 --- a/activerecord/test/cases/validations_i18n_test.rb +++ b/activerecord/test/cases/validations_i18n_test.rb @@ -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 |