diff options
author | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:55:07 +0200 |
---|---|---|
committer | Sven Fuchs <svenfuchs@artweb-design.de> | 2008-06-23 14:55:07 +0200 |
commit | 8461526f346b8d8387ba3b74221fbeefef3aefeb (patch) | |
tree | 2cbb507288454c0a7421c164b430fda36a006892 /activerecord/test/cases | |
parent | 77177441d1bd8f62c5b6a990ddee155061df661c (diff) | |
download | rails-8461526f346b8d8387ba3b74221fbeefef3aefeb.tar.gz rails-8461526f346b8d8387ba3b74221fbeefef3aefeb.tar.bz2 rails-8461526f346b8d8387ba3b74221fbeefef3aefeb.zip |
silence deprecation warning during validations test
Diffstat (limited to 'activerecord/test/cases')
-rwxr-xr-x | activerecord/test/cases/validations_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/cases/validations_test.rb b/activerecord/test/cases/validations_test.rb index 7b71647d25..ad27ac951c 100755 --- a/activerecord/test/cases/validations_test.rb +++ b/activerecord/test/cases/validations_test.rb @@ -853,7 +853,9 @@ class ValidationsTest < ActiveRecord::TestCase end def test_validates_length_with_globally_modified_error_message - ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre %d' + ActiveSupport::Deprecation.silence do + ActiveRecord::Errors.default_error_messages[:too_short] = 'tu est trops petit hombre %d' + end Topic.validates_length_of :title, :minimum => 10 t = Topic.create(:title => 'too short') assert !t.valid? |