Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Trying to use webmocks and Typhoeus and Embedly gems, but the combination causes issues... #269

Closed
victorbstan opened this Issue · 3 comments

2 participants

@victorbstan
webmock-1.8.11/lib/webmock/http_lib_adapters/typhoeus_hydra_adapter.rb:41:in `remove_after_request_callback': undefined method `global_hooks' for Typhoeus::Hydra:Class (NoMethodError)

(I double posted on the Typhoeus github as well, because I'm not sure where/who causes the issue exactly...)

@bblimke
Owner

what version of Typhoeus do you use? I suggest using the latest WebMock and Typhoeus

@victorbstan

webmock (1.8.11) and typhoeus (0.6.2)

It seems to bust around here:

def self.remove_after_request_callback
  Typhoeus::Hydra.global_hooks[:after_request_before_on_complete].
  delete_if {|v| v == AFTER_REQUEST_CALLBACK }
end

global_hooks doesn't exist in Typhoeus...

@victorbstan

Updated Gemfile to webmock ~> 1.9 and it works, closing the issue.
Thanks for the help!

@victorbstan victorbstan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.