Module: ShafClient::Test::Stubbing

Defined in:
lib/shaf_client/test/stubbing.rb

Instance Method Summary collapse

Instance Method Details

#adapter_argsObject



9
10
11
12
13
# File 'lib/shaf_client/test/stubbing.rb', line 9

def adapter_args
  args = super
  args << stubs if @adapter == :test
  args 
end

#stubsObject



4
5
6
7
# File 'lib/shaf_client/test/stubbing.rb', line 4

def stubs
  return unless @adapter == :test
  @stubs ||= Faraday::Adapter::Test::Stubs.new
end