You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running my VCR specs against the latest em-http-request release (0.2.10), I get errors like these:
1)
NoMethodError in 'VCR::HttpStubbingAdapters::WebMock using em-http-request when #http_connections_allowed is set to true allows real http requests'
undefined method `[]' for nil:NilClass
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/webmock-1.3.1/lib/webmock/http_lib_adapters/em_http_request.rb:76:in `build_request_signature'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/webmock-1.3.1/lib/webmock/http_lib_adapters/em_http_request.rb:31:in `send_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/em-http-request-0.2.10/lib/em-http/request.rb:59:in `setup_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/em-http-request-0.2.10/lib/em-http/request.rb:49:in `get'
./spec/http_stubbing_adapters/webmock_spec.rb:51:in `make_http_request'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
/Users/mmarston/.rvm/gems/ruby-1.8.7-p299/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
./spec/http_stubbing_adapters/webmock_spec.rb:49:in `make_http_request'
/Users/mmarston/code/vcr/spec/support/http_stubbing_adapter.rb:82:in `test_real_http_request'
When I run my specs against em-http-request 0.2.7, they pass. Looking at the stack trace, you can see the problem is here--you're referencing @options, but apparently it's nil.
The text was updated successfully, but these errors were encountered:
When running my VCR specs against the latest em-http-request release (0.2.10), I get errors like these:
When I run my specs against em-http-request 0.2.7, they pass. Looking at the stack trace, you can see the problem is here--you're referencing
@options
, but apparently it's nil.The text was updated successfully, but these errors were encountered: