Sha256: d29ae0370ad49e32b717a60202258ad76d895555e0ae5166e7c834650f933c48

Contents?: true

Size: 570 Bytes

Versions: 64

Compression:

Stored size: 570 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

64 entries across 62 versions & 6 rubygems

Version Path
fog-aws-3.3.0 tests/signed_params_tests.rb
fog-aws-3.2.0 tests/signed_params_tests.rb
fog-aws-3.1.0 tests/signed_params_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aws-2.0.1/tests/signed_params_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aws-2.0.1/tests/signed_params_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aws-2.0.1/tests/signed_params_tests.rb
fog-aws-3.0.0 tests/signed_params_tests.rb
fog-aws-2.0.1 tests/signed_params_tests.rb
fog-aws-2.0.0 tests/signed_params_tests.rb
fog-aws-1.4.1 tests/signed_params_tests.rb
fog-aws-1.4.0 tests/signed_params_tests.rb
fog-aws-1.3.0 tests/signed_params_tests.rb
fog-aws-1.2.1 tests/signed_params_tests.rb
fog-aws-1.2.0 tests/signed_params_tests.rb
fog-aws-1.1.0 tests/signed_params_tests.rb
fog-aws-1.0.0 tests/signed_params_tests.rb
fog-aws-0.13.0 tests/signed_params_tests.rb
fog-aws-0.12.0 tests/signed_params_tests.rb
fog-aws-0.11.0 tests/signed_params_tests.rb
fog-aws-0.10.0 tests/signed_params_tests.rb