Sha256: 043cbf54d61c8f94fed092b8119d7554830ca24fcd587881eda2a2ca6fe5e563

Contents?: true

Size: 381 Bytes

Versions: 9

Compression:

Stored size: 381 Bytes

Contents

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"))
  end
end

Version data entries

9 entries across 8 versions & 5 rubygems

Version Path
kajam-1.0.3.rc2 vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
radiant-1.0.0.rc2 vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
radiant-1.0.0.rc1 vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
radiant-0.9.0.rc2 vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
recliner-0.0.1 vendor/activesupport/test/core_ext/base64_ext_test.rb
antfarm-0.3.0 rails/vendor/rails/activesupport/test/core_ext/base64_ext_test.rb
antfarm-0.4.0 rails/vendor/rails/activesupport/test/core_ext/base64_ext_test.rb