diff options
author | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-27 22:46:44 +0300 |
---|---|---|
committer | Vasiliy Ermolovich <younash@gmail.com> | 2011-12-27 22:46:44 +0300 |
commit | a19d0f5a66f17c356c5255c5d5930a73a25f627a (patch) | |
tree | 63d535e08e31774c417e960ab306431c144c0fb7 /activesupport/test/core_ext | |
parent | 1a7701522d2308df801ba1f375cb0626386928a5 (diff) | |
download | rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.gz rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.bz2 rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.zip |
deprecate Base64.encode64s from AS. Use Base64.strict_encode64 instead
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/base64_ext_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/base64_ext_test.rb b/activesupport/test/core_ext/base64_ext_test.rb index bd0e9f843d..544c990b3c 100644 --- a/activesupport/test/core_ext/base64_ext_test.rb +++ b/activesupport/test/core_ext/base64_ext_test.rb @@ -2,7 +2,9 @@ require 'abstract_unit' class Base64Test < Test::Unit::TestCase def test_no_newline_in_encoded_value - assert_match(/\n/, ActiveSupport::Base64.encode64("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) - assert_no_match(/\n/, ActiveSupport::Base64.encode64s("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) + ActiveSupport::Deprecation.silence do + assert_match(/\n/, ActiveSupport::Base64.encode64("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) + assert_no_match(/\n/, ActiveSupport::Base64.encode64s("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) + end end end |