Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Escaping of delimeter characters #243

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+7 −0
Split
View
@@ -73,4 +73,11 @@ def test_verification_that_non_expected_stub_didnt_occur
assert_not_requested(@stub_http)
end
end
+
+ def test_uri_parser_does_not_escape_delimeter
+ #https://github.com/bblimke/webmock/issues/240
+ uri = "http://somedomain.org/contrlr/actn.formt?conditions[model_id]=1"
+ parsed = WebMock::Util::URI.normalize_uri(uri)
+ assert parsed.query == "conditions[model_id]=1", "Query format mismatch"
+ end
end