Sha256: b934bcc63ebf661876dfb0e7ba3e3ef098045289361b5db24670852161c825a6

Contents?: true

Size: 500 Bytes

Versions: 5

Compression:

Stored size: 500 Bytes

Contents

# -*- encoding: utf-8 -*-

require File.expand_path('../test_helper', __FILE__)

class TestOauth < Minitest::Test

  def test_parameter_escaping_kcode_invariant
    %w(n N e E s S u U).each do |kcode|
      assert_equal '%E3%81%82', OAuth::Helper.escape('あ'),
                    "Failed to correctly escape Japanese under $KCODE = #{kcode}"
      assert_equal '%C3%A9', OAuth::Helper.escape('é'),
                    "Failed to correctly escape e+acute under $KCODE = #{kcode}"
    end
  end
end

Version data entries

5 entries across 4 versions & 2 rubygems

Version Path
tdiary-5.0.5 vendor/bundle/gems/oauth-0.5.1/test/test_signature.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/oauth-0.5.1/test/test_signature.rb
tdiary-5.0.4 vendor/bundle/gems/oauth-0.5.1/test/test_signature.rb
oauth-0.5.1 test/test_signature.rb
oauth-0.5.0 test/test_signature.rb