aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorSven Fuchs <svenfuchs@artweb-design.de>2008-07-02 19:21:07 +0200
committerSven Fuchs <svenfuchs@artweb-design.de>2008-07-02 19:21:07 +0200
commit8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a (patch)
treed3ea17f604e93db745ee74ee21dc7cafa76bc81d /activerecord/test
parent7403c825a05af320e20f1b7e20b0c565081ede89 (diff)
downloadrails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.tar.gz
rails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.tar.bz2
rails-8f74ba96c47e77e18ce363c8e7cd2fc9196faf7a.zip
remove core extensions in favor of I18n#translate and I18n#localize
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/validations_i18n_test.rb2
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 53e90f4d53..840fcd81d0 100644
--- a/activerecord/test/cases/validations_i18n_test.rb
+++ b/activerecord/test/cases/validations_i18n_test.rb
@@ -79,7 +79,7 @@ class ActiveRecordValidationsI18nTests < Test::Unit::TestCase
def test_errors_full_messages_translates_human_attribute_name_for_model_attributes
@topic.errors.instance_variable_set :@errors, { 'title' => 'empty' }
- I18n.expects(:translate).with(:"active_record.human_attribute_names.topic.title", 'en-US').returns('Title')
+ I18n.expects(:translate).with(:"active_record.human_attribute_names.topic.title", 'en-US', :raise => true).returns('Title')
@topic.errors.full_messages :locale => 'en-US'
end
end