Sha256: 6052901e6ad16877da8e371a09891526f22364e4ba412ba0bfb211ad2ae8b05a
Contents?: true
Size: 963 Bytes
Versions: 2
Compression:
Stored size: 963 Bytes
Contents
unless ENV['CI'] require 'simplecov' SimpleCov.start end require 't' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
t-0.5.1 | spec/helper.rb |
t-0.5.0 | spec/helper.rb |