Sha256: e105fc1cd95b512028acc96e56f2449f910788e1fc41b3ba8f05748ca1bdaf39
Contents?: true
Size: 978 Bytes
Versions: 1
Compression:
Stored size: 978 Bytes
Contents
unless ENV['CI'] require 'simplecov' SimpleCov.start end require 't' T.env = 'test' require 'rspec' require 'timecop' require 'webmock/rspec' def a_delete(path, endpoint=Twitter.endpoint) a_request(:delete, endpoint + path) end def a_get(path, endpoint=Twitter.endpoint) a_request(:get, endpoint + path) end def a_post(path, endpoint=Twitter.endpoint) a_request(:post, endpoint + path) end def a_put(path, endpoint=Twitter.endpoint) a_request(:put, endpoint + path) end def stub_delete(path, endpoint=Twitter.endpoint) stub_request(:delete, endpoint + path) end def stub_get(path, endpoint=Twitter.endpoint) stub_request(:get, endpoint + path) end def stub_post(path, endpoint=Twitter.endpoint) stub_request(:post, endpoint + path) end def stub_put(path, endpoint=Twitter.endpoint) stub_request(:put, endpoint + path) end def fixture_path File.expand_path("../fixtures", __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
t-0.4.0 | spec/helper.rb |