Sha256: 4dc3278fe4bdcd3b71ad07065aaaf657f0f6affb1f9da8a798354851cdd11079
Contents?: true
Size: 303 Bytes
Versions: 3
Compression:
Stored size: 303 Bytes
Contents
require "spec_helper" require "tagen/uri" describe URI::Generic do describe "#to_hash" do it do a = URI("http://example.com").to_hash b = { scheme: "http", userinfo: nil, host: "example.com", port: 80, path: "", query: nil, fragment: nil } expect(a).to eq(b) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
tagen-2.0.2 | spec/tagen/uri_spec.rb |
tagen-2.0.1 | spec/tagen/uri_spec.rb |
tagen-2.0.0 | spec/tagen/uri_spec.rb |