spec/webmachine/request_spec.rb in webmachine-0.2.0 vs spec/webmachine/request_spec.rb in webmachine-0.3.0
- old
+ new
@@ -19,6 +19,11 @@
it "should provide a hash of query parameters" do
subject.uri.query = "foo=bar&baz=bam"
subject.query.should == {"foo" => "bar", "baz" => "bam"}
end
+
+ it "should treat '+' characters in query parameters as spaces" do
+ subject.uri.query = "a%20b=foo+bar&c+d=baz%20quux"
+ subject.query.should == {"a b" => "foo bar", "c d" => "baz quux"}
+ end
end