diff options
author | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-06-11 01:55:54 +0300 |
---|---|---|
committer | Benjamin Neff <benjamin@coding4coffee.ch> | 2016-06-26 07:21:01 +0300 |
commit | 51aca4506f65615571c0bd149b5ea19c3bb99530 (patch) | |
tree | c87a05fc0731cd639b92d1c7508de75d6953e258 /spec/support/fake_typhoeus.rb | |
parent | ae05d4e92857e14c64fcd2fc233dec19922ccd2b (diff) |
remove HttpMulti and HydraWrapper
Diffstat (limited to 'spec/support/fake_typhoeus.rb')
-rw-r--r-- | spec/support/fake_typhoeus.rb | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/support/fake_typhoeus.rb b/spec/support/fake_typhoeus.rb deleted file mode 100644 index fdbacaba4..000000000 --- a/spec/support/fake_typhoeus.rb +++ /dev/null @@ -1,22 +0,0 @@ -class FakeHydra - def queue(*args); end - def run; end -end - -class FakeHydraRequest - def initialize(*args); end - def on_complete; end -end - -def disable_typhoeus - silence_warnings do - Workers::HttpMulti.const_set('Hydra', FakeHydra) - Workers::HttpMulti.const_set('Request', FakeHydraRequest) - end -end -def enable_typhoeus - silence_warnings do - Workers::HttpMulti.const_set('Hydra', Typhoeus::Hydra) - Workers::HttpMulti.const_set('Request', Typhoeus::Request) - end -end |