Module: Typhoeus::SpecCacheMacros::InstanceMethods

Defined in:
lib/typhoeus/spec_cache_macros.rb

Instance Method Summary collapse

Instance Method Details

#stub_hydra(hydra) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/typhoeus/spec_cache_macros.rb', line 4

def stub_hydra(hydra)
  Typhoeus::Hydra.stub(:new).
    and_return(hydra)

  # stub out the singleton as well.
  Typhoeus::Hydra.stub(:hydra).
    and_return(hydra)
end