Sha256: 5865f9eefb04a9ed6b52c4bc4becfe5ee8bdfd74250049bd4932b8da6b0dce1c
Contents?: true
Size: 831 Bytes
Versions: 1
Compression:
Stored size: 831 Bytes
Contents
require "spec_helper" describe MWS::QueryString::PercentEncodedString do describe "initialize" do mappings = { "abcdefghijklmnopqrstuvwxyz" => "abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ" => "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "0123456789" => "0123456789", "-_.~" => "-_.~", " " => "%20", "%" => "%25", "+" => "%2B", "/" => "%2F", ":" => "%3A", "=" => "%3D", "2009-08-20T01:10:27.607Z" => "2009-08-20T01%3A10%3A27.607Z" } subject{ described_class.new("") } it{ is_expected.to be_an_instance_of(described_class) } it{ is_expected.to be_a(String) } mappings.each do |before, after| describe "\"#{before}\"" do subject{ described_class.new(before) } it{ is_expected.to eq(after) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
marketplace_web_service-0.0.4 | spec/mws/query_string/percent_encoded_string_spec.rb |