Sha256: c7b6cc32c0cbc0d744239d6bd2c48d38513bb7e06cf2dd22511c503a45f1f500
Contents?: true
Size: 959 Bytes
Versions: 4
Compression:
Stored size: 959 Bytes
Contents
ENV["T_ENV"] = "test" require 'simplecov' SimpleCov.start 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
t-0.3.0 | spec/helper.rb |
t-0.2.1 | spec/helper.rb |
t-0.2.0 | spec/helper.rb |
t-0.1.0 | spec/helper.rb |