Sha256: a1b2b702d87437b959be96b0f7948a38a47a4a2f91f8d45ad74accf413f2868e
Contents?: true
Size: 730 Bytes
Versions: 3
Compression:
Stored size: 730 Bytes
Contents
require 'spec_helper' describe MWS::QueryString::UriEncoder do describe "#encode" do let(:encoder){ MWS::QueryString::UriEncoder.new } 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" } mappings.each do |before, after| describe "\"#{before}\"" do subject{ encoder.encode(before) } it{ is_expected.to eq(after) } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems