Sha256: ed7647626077c3344d956e4d4ef127922c4c4bb2cb812566bc3240fab81181c0

Contents?: true

Size: 558 Bytes

Versions: 16

Compression:

Stored size: 558 Bytes

Contents

# encoding: utf-8

Shindo.tests('AWS | signed_params', ['aws']) do
  returns(Fog::AWS.escape("'Stöp!' said Fred_-~./")) { '%27St%C3%B6p%21%27%20said%20Fred_-~.%2F' }

  tests('Unicode characters should be escaped') do
    unicode = ['00E9'.to_i(16)].pack('U*')
    escaped = '%C3%A9'
    returns(escaped) { Fog::AWS.escape(unicode) }
  end

  tests('Unicode characters with combining marks should be escaped') do
    unicode = ['0065'.to_i(16), '0301'.to_i(16)].pack('U*')
    escaped = 'e%CC%81'
    returns(escaped) { Fog::AWS.escape(unicode) }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
fog-aws-3.12.0 tests/signed_params_tests.rb
fog-aws-3.11.0 tests/signed_params_tests.rb
fog-aws-3.10.0 tests/signed_params_tests.rb
fog-aws-3.9.0 tests/signed_params_tests.rb
fog-aws-3.8.0 tests/signed_params_tests.rb
fog-aws-3.7.0 tests/signed_params_tests.rb
fog-aws-3.6.7 tests/signed_params_tests.rb
fog-aws-3.6.6 tests/signed_params_tests.rb
fog-aws-3.6.5 tests/signed_params_tests.rb
fog-aws-3.6.4 tests/signed_params_tests.rb
fog-aws-3.6.3 tests/signed_params_tests.rb
fog-aws-3.6.2 tests/signed_params_tests.rb
fog-aws-3.5.2 tests/signed_params_tests.rb
fog-aws-3.5.1 tests/signed_params_tests.rb
fog-aws-3.5.0 tests/signed_params_tests.rb
fog-aws-3.4.0 tests/signed_params_tests.rb