Sha256: 76ac086794ff8a17d95ee336500bf3954a29289f4f2edded8e212fceef854282
Contents?: true
Size: 1.07 KB
Versions: 7
Compression:
Stored size: 1.07 KB
Contents
$:.unshift File.expand_path('..', __FILE__) $:.unshift File.expand_path('../../lib', __FILE__) require 'simplecov' SimpleCov.start require 'hacker_news_search' require 'rspec' require 'webmock/rspec' def a_delete(path) a_request(:delete, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def a_get(path) a_request(:get, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def a_post(path) a_request(:post, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def a_put(path) a_request(:put, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def stub_delete(path) stub_request(:delete, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def stub_get(path) stub_request(:get, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def stub_post(path) stub_request(:post, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def stub_put(path) stub_request(:put, 'http://api.thriftdb.com/api.hnsearch.com/' + path) end def fixture_path File.expand_path('../fixtures', __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end
Version data entries
7 entries across 7 versions & 1 rubygems