Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2016-06-11 01:55:54 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2016-06-26 07:21:01 +0300
commit51aca4506f65615571c0bd149b5ea19c3bb99530 (patch)
treec87a05fc0731cd639b92d1c7508de75d6953e258 /spec/support/fake_typhoeus.rb
parentae05d4e92857e14c64fcd2fc233dec19922ccd2b (diff)
remove HttpMulti and HydraWrapper
Diffstat (limited to 'spec/support/fake_typhoeus.rb')
-rw-r--r--spec/support/fake_typhoeus.rb22
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