Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ed94009994
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.534 kB
# encoding: utf-8
path = File.expand_path(File.dirname(__FILE__) + '/../lib/')
$LOAD_PATH.unshift(path) unless $LOAD_PATH.include?(path)
require 'c3po'
def file_path( *paths )
File.expand_path(File.join(File.dirname(__FILE__), 'fixtures', *paths))
end
def request_helper(uri, query, body)
request = Typhoeus::Request.new uri, :params => query
hydra = Typhoeus::Hydra.hydra
response = Typhoeus::Response.new(:code => 200, :headers => "", :body => body, :time => 0.3)
hydra.stub(:get, request.url).and_return(response)
end
Jump to Line
Something went wrong with that request. Please try again.