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
Scenario: Send JSON data
✔ Given I use the default hyperclient config # features/steps/default_config.rb:4
✔ When I send some data to the API # features/steps/default_config.rb:12
! Then it should have been encoded as JSON # features/steps/default_config.rb:17
The request POST http://api.example.org/posts with body "{\"title\":\"My first blog post\"}" was expected to execute 1 time but it executed 0 times
The following requests were made:
GET http://api.example.org/ with headers {'Accept'=>'application/json', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/json', 'User-Agent'=>'Faraday v0.9.0'} was made 1 time
============================================================
/Users/dblock/.rvm/rubies/ruby-2.0.0-p353/lib/ruby/gems/2.0.0/gems/webmock-1.18.0/lib/webmock/assertion_failure.rb:7:in `failure'
Scenario: Parse JSON data
✔ Given I use the default hyperclient config # features/steps/default_config.rb:4
✔ When I get some data from the API # features/steps/default_config.rb:21
✔ Then it should have been parsed as JSON # features/steps/default_config.rb:25
Error summary:
Errors (1)
Default config :: Send JSON data :: Then it should have been encoded as JSON
This is intermittent, 3 out of 10 runs. Looks suspicious.
Activity
dblock commentedon Sep 20, 2014
I "fixed" it in #61, it seemed like doing another explicit expectation for an HTTP request worked more reliably, I am not sure why.