spec/acceptance/shared/stubbing_requests.rb in webmock-2.3.1 vs spec/acceptance/shared/stubbing_requests.rb in webmock-2.3.2
- old
+ new
@@ -16,10 +16,10 @@
it "should return stubbed response even if request has non escaped params" do
stub_request(:get, "www.example.com/hello%2B/?#{ESCAPED_PARAMS}").to_return(body: "abc")
expect(http_request(:get, "http://www.example.com/hello+/?#{NOT_ESCAPED_PARAMS}").body).to eq("abc")
end
- it "should return stubbed response for url with non utf query params" do
+ it "should return stubbed response for url with non utf query params", "ruby>1.9" => true do
param = 'aäoöuü'.encode('iso-8859-1')
param = CGI.escape(param)
stub_request(:get, "www.example.com/?#{param}").to_return(body: "abc")
expect(http_request(:get, "http://www.example.com/?#{param}").body).to eq("abc")
end