vendor/bundle/ruby/2.3.0/gems/freelancer-0.1.1/test/test_helper.rb
# Create a fake web stub for the specified method
Create a fake web stub for the specified method
Create a fake web stub for the specified method
def stub_api_request(type, method, filename, status = nil)
  options = { :body => fixture_file(filename) }
  options.merge!({ :status => status }) unless status.nil?
  FakeWeb.register_uri(type, api_url(method), options)
end
def stub_api_request ( type , method , filename , status = nil ) options = { :body => fixture_file ( filename ) } options . merge! ( { :status => status } ) unless status . nil? FakeWeb . register_uri ( type , api_url ( method ) , options ) end
Create a fake web stub for the specified method
Create a fake web stub for the specified method
type
<not_specific>
method
<not_specific>
filename
<not_specific>
status
<not_specific>