Sha256: d4a71747fe63e3209ad2b3281213f93655ac4e27e3e1ee988ed6c1dbbf769986
Contents?: true
Size: 457 Bytes
Versions: 1
Compression:
Stored size: 457 Bytes
Contents
require "test_helper" class CoreExtTest < Test::Unit::TestCase def test_uri_obfuscate assert_equal "http://example.com", URI("http://example.com").obfuscate.to_s assert_equal "http://***@example.com", URI("http://foo@example.com").obfuscate.to_s assert_equal "http://***:***@example.com", URI("http://foo:secret@example.com").obfuscate.to_s end def test_cgi_escape assert_equal "example%2ecom", CGI.escape("example.com") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
Roman2K-web-service-0.1.1 | test/web_service/core_ext_test.rb |