Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I got lots of this: 1) Cronitor sets its config correctly has the specified options Failure/Error: response = Unirest.get( "#{API_URL}/monitors/#{URI.escape(name).gsub('[', '%5B').gsub(']', '%5D')}", headers: default_headers, auth: { user: token } ) NoMethodError: undefined method `close' for #<StubSocket:0x007f8de75d28a8> # ./lib/cronitor.rb:46:in `exists?' # ./lib/cronitor.rb:27:in `initialize' # ./spec/cronitor_spec.rb:17:in `new' # ./spec/cronitor_spec.rb:17:in `block (3 levels) in <top (required)>' # ./spec/cronitor_spec.rb:25:in `block (3 levels) in <top (required)>' # ------------------ # --- Caused by: --- # RestClient::ResourceNotFound: # 404 Resource Not Found # ./lib/cronitor.rb:46:in `exists?' Seems to be this issue which is fixed in webmock >= 2.3.1: bblimke/webmock#683 Simply updating seems to work fine.
- Loading branch information