Skip to content

Instantly share code, notes, and snippets.

@jcf
Created August 9, 2012 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jcf/3302745 to your computer and use it in GitHub Desktop.
Save jcf/3302745 to your computer and use it in GitHub Desktop.
WebMock + Addressable 2.3
Failures:
1) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
2) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
3) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
4) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
5) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
6) Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:69:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
7) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
8) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
9) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
10) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
11) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
12) Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:271
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
13) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:82:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
14) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:82:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
15) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:82:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
16) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:80:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
17) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:80:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
18) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:80:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
19) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
20) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
21) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
22) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
23) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
24) Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:285
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
25) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
26) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
27) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
28) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
29) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
30) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:103:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
31) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
32) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
33) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
34) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
35) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
36) Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:326
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
37) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
38) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
39) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
40) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
41) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
42) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:113:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
43) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
44) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
45) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
46) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
47) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
48) Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:331
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
49) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
50) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
51) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:175:in `http_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:183:in `block (2 levels) in <class:WebMockCurlEasy>'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
52) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
53) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
54) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:78:in `curb_or_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:209:in `perform_with_webmock'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post'
# ./lib/webmock/http_lib_adapters/curb_adapter.rb:201:in `http_post_with_webmock'
# ./spec/acceptance/curb/curb_spec_helper.rb:126:in `curb_http_request'
# ./spec/acceptance/curb/curb_spec_helper.rb:8:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
55) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
56) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
57) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
58) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
59) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
60) Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
Shared Example Group: "Curb" called from ./spec/acceptance/curb/curb_spec.rb:336
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
61) EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
with(:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
62) EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
with(:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
63) EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
with(:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
64) EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
65) EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f",
:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
66) EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Authorization'=>['', '']}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Authorization'=>['', '']}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/em_http_request/em_http_request_1_x.rb:70:in `webmock_activate_connection'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:17:in `block in http_request'
# ./spec/acceptance/em_http_request/em_http_request_spec_helper.rb:15:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
67) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
68) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
69) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
70) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
71) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
72) EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Authorization'=>['', '']} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
73) Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
with(:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
74) Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
with(:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
75) Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
with(:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
76) Excon with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
77) Excon with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f",
:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
78) Excon with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Host'=>'www.example.com:80'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Host'=>'www.example.com:80'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/excon_adapter.rb:87:in `request_kernel'
# ./spec/acceptance/excon/excon_spec_helper.rb:11:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
79) Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
80) Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
81) Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
82) Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
83) Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
84) Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Host'=>'www.example.com:80'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
85) HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
86) HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
87) HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
88) HTTPClient with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
89) HTTPClient with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
90) HTTPClient with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:71:in `do_get_with_webmock'
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:33:in `do_get_block_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:18:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
91) HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
92) HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
93) HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
94) HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
95) HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
96) HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
97) HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
98) HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
99) HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
100) HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
101) HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
102) HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c[d][]"=>"f"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/httpclient_adapter.rb:83:in `do_request_async_with_webmock'
# ./spec/acceptance/httpclient/httpclient_spec_helper.rb:14:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
103) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
104) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
105) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
106) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
107) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
108) HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Content-Type'=>'application/x-www-form-urlencoded'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
109) Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
110) Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
111) Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
with(:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
112) Net:HTTP with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
113) Net:HTTP with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f",
:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
114) Net:HTTP with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Accept'=>'*/*', 'User-Agent'=>'Ruby'}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/net_http.rb:99:in `request_with_webmock'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:32:in `block in http_request'
# ./lib/webmock/http_lib_adapters/net_http.rb:110:in `start_without_connect'
# ./lib/webmock/http_lib_adapters/net_http.rb:123:in `start_with_conditional_connect'
# ./spec/acceptance/net_http/net_http_spec_helper.rb:31:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
115) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
116) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
117) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
118) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
119) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
120) Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Accept'=>'*/*', 'User-Agent'=>'Ruby'} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
121) Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
with(:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
122) Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
with(:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
123) Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
with(:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
124) Patron with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
125) Patron with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f",
:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
126) Patron with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Expect'=>''}
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five",
:headers => {'Expect'=>''}).
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/patron_adapter.rb:41:in `handle_request_with_webmock'
# ./spec/acceptance/patron/patron_spec_helper.rb:16:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
127) Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
128) Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
129) Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
130) Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
131) Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
132) Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' with headers {'Expect'=>''} was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
133) Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c")
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:23:in `block (4 levels) in <top (required)>'
134) Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
Failure/Error: http_request(:get, "http://www.example.com/?x=3&a[]=b&a[]=c").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&x=3
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&x=3").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/?a=b&a=c&x=3")
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:33:in `block (4 levels) in <top (required)>'
135) Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
Failure/Error: http_request(:get, "http://www.example.com/?a[]=b&a[]=c&b=1").body.should == "abc"
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://www.example.com/?a%5B%5D=c&b=1
You can stub this request with the following snippet:
stub_request(:get, "http://www.example.com/?a%5B%5D=c&b=1").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:get, "http://www.example.com/ with query params hash_including({"a"=>["b", "c"]})")
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:38:in `block (4 levels) in <top (required)>'
136) Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:105:in `block (6 levels) in <top (required)>'
137) Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&b=five&c[d][]=f").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}})
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:111:in `block (6 levels) in <top (required)>'
138) Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
Failure/Error: :post, "http://www.example.com/",
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
You can stub this request with the following snippet:
stub_request(:post, "http://www.example.com/").
with(:body => "a=1&c[d][]=e&c[d][]=f&b=five").
to_return(:status => 200, :body => "", :headers => {})
registered request stubs:
stub_request(:post, "http://www.example.com/").
with(:body => hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}))
============================================================
# ./lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:164:in `queue_with_webmock'
# ./spec/acceptance/typhoeus/typhoeus_hydra_spec_helper.rb:19:in `http_request'
# ./spec/acceptance/shared/stubbing_requests.rb:187:in `block (6 levels) in <top (required)>'
139) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:134:in `block (5 levels) in <top (required)>'
140) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/?a=b&a=c&x=3 was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&x=3 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:148:in `block (5 levels) in <top (required)>'
141) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://www.example.com/?a%5B%5D=c&b=1 was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:155:in `block (5 levels) in <top (required)>'
142) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:223:in `block (6 levels) in <top (required)>'
143) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f' was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:230:in `block (6 levels) in <top (required)>'
144) Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
Failure/Error: lambda {
expected no Exception, got #<RSpec::Expectations::ExpectationNotMetError: The request POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) was expected to execute 1 time but it executed 0 times
The following requests were made:
POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five' was made 1 time
============================================================>
# ./spec/acceptance/shared/request_expectations.rb:306:in `block (6 levels) in <top (required)>'
145) WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match request query params
Failure/Error: WebMock::RequestPattern.new(:get, /.*example.*/, :query => {"a" => ["b", "c"]}).
expected GET /.*example.*/ with query params {"a"=>["b", "c"]} to match GET http://www.example.com/?a%5B%5D=c
# ./spec/unit/request_pattern_spec.rb:145:in `block (5 levels) in <top (required)>'
146) WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match when query params are declared as HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:get, /.*example.*/,
expected GET /.*example.*/ with query params hash_including({"a"=>["b", "c"]}) to match GET http://www.example.com/?a%5B%5D=c&b=1
# ./spec/unit/request_pattern_spec.rb:155:in `block (5 levels) in <top (required)>'
147) WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match when query params are declared as RSpec HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:get, /.*example.*/,
expected GET /.*example.*/ with query params hash_including({"a"=>["b", "c"]}) to match GET http://www.example.com/?a%5B%5D=c&b=1
# ./spec/unit/request_pattern_spec.rb:167:in `block (5 levels) in <top (required)>'
148) WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are the same as declared in hash
Failure/Error: WebMock::RequestPattern.new(:get, "www.example.com", :query => {"a" => ["b", "c"]}).
expected GET http://www.example.com/?a=b&a=c to match GET http://www.example.com/?a%5B%5D=c
# ./spec/unit/request_pattern_spec.rb:181:in `block (5 levels) in <top (required)>'
149) WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are declared as HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:get, "www.example.com",
expected GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) to match GET http://www.example.com/?a%5B%5D=c&b=1
# ./spec/unit/request_pattern_spec.rb:201:in `block (5 levels) in <top (required)>'
150) WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are declared as RSpec HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:get, "www.example.com",
expected GET http://www.example.com/ with query params hash_including({"a"=>["b", "c"]}) to match GET http://www.example.com/?a%5B%5D=c&b=1
# ./spec/unit/request_pattern_spec.rb:213:in `block (5 levels) in <top (required)>'
151) WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash matches body
Failure/Error: WebMock::RequestPattern.new(:post, 'www.example.com', :body => body_hash).
expected POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} to match POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
# ./spec/unit/request_pattern_spec.rb:273:in `block (6 levels) in <top (required)>'
152) WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash matches body in different order of params
Failure/Error: WebMock::RequestPattern.new(:post, 'www.example.com', :body => body_hash).
expected POST http://www.example.com/ with body {"a"=>"1", "b"=>"five", "c"=>{"d"=>["e", "f"]}} to match POST http://www.example.com/ with body 'a=1&c[d][]=e&b=five&c[d][]=f'
# ./spec/unit/request_pattern_spec.rb:278:in `block (6 levels) in <top (required)>'
153) WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash contains regex values
Failure/Error: WebMock::RequestPattern.new(:post, "www.example.com", :body => {:a => /^\w{5}$/, :b => {:c => /^\d{3}$/}}).
expected POST http://www.example.com/ with body {"a"=>/^\w{5}$/, "b"=>{"c"=>/^\d{3}$/}} to match POST http://www.example.com/ with body 'a=abcde&b[c]=123'
# ./spec/unit/request_pattern_spec.rb:293:in `block (6 levels) in <top (required)>'
154) WebMock::RequestPattern when matching when matching requests with body when body in a pattern is declared as a partial hash matcher should match when query params are declared as HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:post, "www.example.com",
expected POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) to match POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
# ./spec/unit/request_pattern_spec.rb:375:in `block (5 levels) in <top (required)>'
155) WebMock::RequestPattern when matching when matching requests with body when body in a pattern is declared as a partial hash matcher should match when query params are declared as RSpec HashIncluding matcher matching params
Failure/Error: WebMock::RequestPattern.new(:post, "www.example.com",
expected POST http://www.example.com/ with body hash_including({"a"=>"1", "c"=>{"d"=>["e", "f"]}}) to match POST http://www.example.com/ with body 'a=1&c[d][]=e&c[d][]=f&b=five'
# ./spec/unit/request_pattern_spec.rb:387:in `block (5 levels) in <top (required)>'
156) WebMock::StubRequestSnippet to_s POST should print stub request snippet with body as a hash using rails conventions on form posts
Failure/Error: WebMock::StubRequestSnippet.new(@request_stub).to_s.should == expected.strip
expected: "stub_request(:post, \"http://www.example.com/\").\n with(:body => {\"user\"=>{\"first_name\"=>\"Bartosz\"}},\n :headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).\n to_return(:status => 200, :body => \"\", :headers => {})"
got: "stub_request(:post, \"http://www.example.com/\").\n with(:body => {\"user[first_name]\"=>\"Bartosz\"},\n :headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).\n to_return(:status => 200, :body => \"\", :headers => {})" (using ==)
Diff:
@@ -1,5 +1,5 @@
stub_request(:post, "http://www.example.com/").
- with(:body => {"user"=>{"first_name"=>"Bartosz"}},
+ with(:body => {"user[first_name]"=>"Bartosz"},
:headers => {'Content-Type'=>'application/x-www-form-urlencoded'}).
to_return(:status => 200, :body => "", :headers => {})
# ./spec/unit/stub_request_snippet_spec.rb:75:in `block (4 levels) in <top (required)>'
157) WebMock::Util::URI normalized uri equality should successfully handle array parameters
Failure/Error: uri.query_values.should == {"a"=>["b", "c"]}
expected: {"a"=>["b", "c"]}
got: {"a[]"=>"c"} (using ==)
Diff:
@@ -1,2 +1,2 @@
-"a" => ["b", "c"]
+"a[]" => "c"
# ./spec/unit/util/uri_spec.rb:173:in `block (3 levels) in <top (required)>'
158) WebMock::Util::URI normalized uri equality should successfully handle hash parameters
Failure/Error: uri.query_values.should == {"a"=>{"d"=>"b", "e"=>"c", "b"=>{"c"=>"1"}}}
expected: {"a"=>{"d"=>"b", "e"=>"c", "b"=>{"c"=>"1"}}}
got: {"a[b][c]"=>"1", "a[d]"=>"b", "a[e]"=>"c"} (using ==)
Diff:
@@ -1,2 +1,4 @@
-"a" => {"d"=>"b", "e"=>"c", "b"=>{"c"=>"1"}}
+"a[b][c]" => "1",
+"a[d]" => "b",
+"a[e]" => "c"
# ./spec/unit/util/uri_spec.rb:179:in `block (3 levels) in <top (required)>'
159) WebMock::Util::URI normalized uri equality should successfully handle nested hash parameters
Failure/Error: uri.query_values.should == {"one"=>{"two"=>{"three" => ["four", "five"]}}}
expected: {"one"=>{"two"=>{"three"=>["four", "five"]}}}
got: {"one[two][three][]"=>"five"} (using ==)
Diff:
@@ -1,2 +1,2 @@
-"one" => {"two"=>{"three"=>["four", "five"]}}
+"one[two][three][]" => "five"
# ./spec/unit/util/uri_spec.rb:185:in `block (3 levels) in <top (required)>'
Finished in 28.48 seconds
3166 examples, 159 failures
Failed examples:
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Webmock with Curb using #http for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Webmock with Curb using #http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Webmock with Curb using #perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Webmock with Curb using .http_* methods for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Webmock with Curb using .perform for requests it should behave like Curb with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # EM::HttpRequest with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # EM::HttpRequest with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # EM::HttpRequest with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Excon with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Excon with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Excon with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Excon with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Excon with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Excon with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # HTTPClient with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # HTTPClient with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # HTTPClient with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # HTTPClient with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # HTTPClient with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # HTTPClient when using async requests with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # HTTPClient when using async requests with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # HTTPClient when using async requests with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Net:HTTP with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Net:HTTP with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Net:HTTP with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Net:HTTP with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Net:HTTP with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Patron with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Patron with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Patron with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Patron with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Patron with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Patron with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/stubbing_requests.rb:21 # Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:31 # Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub declares query params both in uri and as a hash
rspec ./spec/acceptance/shared/stubbing_requests.rb:36 # Typhoeus::Hydra with WebMock when requests are stubbed based on query params should return stubbed response when stub expects only part of query params
rspec ./spec/acceptance/shared/stubbing_requests.rb:103 # Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/stubbing_requests.rb:109 # Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as a hash for request with url encoded body should match request if hash matches body in different order of params
rspec ./spec/acceptance/shared/stubbing_requests.rb:185 # Typhoeus::Hydra with WebMock when requests are stubbed based on body when body is declared as partial hash matcher for request with url encoded body should match request if hash matches body
rspec ./spec/acceptance/shared/request_expectations.rb:133 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:147 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with query params both in uri and in query option
rspec ./spec/acceptance/shared/request_expectations.rb:154 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when matching requests with query params should satisfy expectation if the request was executed with only part query params declared as a hash in a query option
rspec ./spec/acceptance/shared/request_expectations.rb:222 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/acceptance/shared/request_expectations.rb:229 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a hash when request is made with url encoded body matching hash should satisfy expectation even if url encoded params have different order
rspec ./spec/acceptance/shared/request_expectations.rb:305 # Typhoeus::Hydra with WebMock when request expectations are set when net connect is not allowed when expected reqest body is declared as a partial hash matcher when request is made with url encoded body matching hash should satisfy expectation
rspec ./spec/unit/request_pattern_spec.rb:144 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match request query params
rspec ./spec/unit/request_pattern_spec.rb:154 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match when query params are declared as HashIncluding matcher matching params
rspec ./spec/unit/request_pattern_spec.rb:166 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as regexp should match when query params are declared as RSpec HashIncluding matcher matching params
rspec ./spec/unit/request_pattern_spec.rb:180 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are the same as declared in hash
rspec ./spec/unit/request_pattern_spec.rb:200 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are declared as HashIncluding matcher matching params
rspec ./spec/unit/request_pattern_spec.rb:212 # WebMock::RequestPattern when matching when matching requests on query params when uri is described as string should match when query params are declared as RSpec HashIncluding matcher matching params
rspec ./spec/unit/request_pattern_spec.rb:272 # WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash matches body
rspec ./spec/unit/request_pattern_spec.rb:277 # WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash matches body in different order of params
rspec ./spec/unit/request_pattern_spec.rb:292 # WebMock::RequestPattern when matching when matching requests with body when body in pattern is declared as a hash for request with url encoded body should match when hash contains regex values
rspec ./spec/unit/request_pattern_spec.rb:374 # WebMock::RequestPattern when matching when matching requests with body when body in a pattern is declared as a partial hash matcher should match when query params are declared as HashIncluding matcher matching params
rspec ./spec/unit/request_pattern_spec.rb:386 # WebMock::RequestPattern when matching when matching requests with body when body in a pattern is declared as a partial hash matcher should match when query params are declared as RSpec HashIncluding matcher matching params
rspec ./spec/unit/stub_request_snippet_spec.rb:64 # WebMock::StubRequestSnippet to_s POST should print stub request snippet with body as a hash using rails conventions on form posts
rspec ./spec/unit/util/uri_spec.rb:170 # WebMock::Util::URI normalized uri equality should successfully handle array parameters
rspec ./spec/unit/util/uri_spec.rb:176 # WebMock::Util::URI normalized uri equality should successfully handle hash parameters
rspec ./spec/unit/util/uri_spec.rb:182 # WebMock::Util::URI normalized uri equality should successfully handle nested hash parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment