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

Closed
victorbstan opened this Issue Apr 1, 2013 · 3 comments

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@bblimke

bblimke Apr 1, 2013

Owner

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

Owner

bblimke commented Apr 1, 2013

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

@victorbstan

This comment has been minimized.

Show comment
Hide comment
@victorbstan

victorbstan Apr 1, 2013

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...

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

This comment has been minimized.

Show comment
Hide comment
@victorbstan

victorbstan Apr 1, 2013

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment