Sha256: 5378a870789dafe427123ff1ff4db52e8d43223a0666c7ea2962cece5072f88c
Contents?: true
Size: 489 Bytes
Versions: 2
Compression:
Stored size: 489 Bytes
Contents
require "spec_helper" describe URI::QueryHash do describe "non-HTML encoded query strings" do subject { { "foo" => nil, "bar" => nil }.extend URI::QueryHash } describe "['foo']" do subject { super()["foo"] } it { is_expected.to be_nil } end describe "['bar']" do subject { super()["bar"] } it { is_expected.to be_nil } end describe "#to_s" do subject { super().to_s } it { is_expected.to eql("foo&bar") } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
optic14n-3.0.0 | spec/uri/query_hash_spec.rb |
optic14n-2.1.0 | spec/uri/query_hash_spec.rb |