diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-02 11:54:00 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-02 11:54:00 -0800 |
commit | 44df252382cc2301364495ff65563d23bcc1b070 (patch) | |
tree | f3dcb38780d337fafde11f4e758f27c54136059b /activesupport/test | |
parent | deaa68281c3737e03227aa127646c04acaa21eb6 (diff) | |
parent | 0f2f8003d2351079ce6ec0e706e474d8024839cc (diff) | |
download | rails-44df252382cc2301364495ff65563d23bcc1b070.tar.gz rails-44df252382cc2301364495ff65563d23bcc1b070.tar.bz2 rails-44df252382cc2301364495ff65563d23bcc1b070.zip |
Merge pull request #4252 from lest/deprecate-activesupport-base64
remove ActiveSupport::Base64 in favor of ::Base64
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/base64_ext_test.rb | 10 | ||||
-rw-r--r-- | activesupport/test/message_encryptor_test.rb | 6 |
2 files changed, 3 insertions, 13 deletions
diff --git a/activesupport/test/core_ext/base64_ext_test.rb b/activesupport/test/core_ext/base64_ext_test.rb deleted file mode 100644 index 544c990b3c..0000000000 --- a/activesupport/test/core_ext/base64_ext_test.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'abstract_unit' - -class Base64Test < Test::Unit::TestCase - def test_no_newline_in_encoded_value - ActiveSupport::Deprecation.silence do - assert_match(/\n/, ActiveSupport::Base64.encode64("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) - assert_no_match(/\n/, ActiveSupport::Base64.encode64s("oneverylongstringthatwouldnormallybesplitupbynewlinesbytheregularbase64")) - end - end -end diff --git a/activesupport/test/message_encryptor_test.rb b/activesupport/test/message_encryptor_test.rb index 11142a358f..b544742300 100644 --- a/activesupport/test/message_encryptor_test.rb +++ b/activesupport/test/message_encryptor_test.rb @@ -76,10 +76,10 @@ class MessageEncryptorTest < ActiveSupport::TestCase end def munge(base64_string) - bits = ActiveSupport::Base64.decode64(base64_string) + bits = ::Base64.decode64(base64_string) bits.reverse! - ActiveSupport::Base64.strict_encode64(bits) + ::Base64.strict_encode64(bits) end end -end
\ No newline at end of file +end |