Sha256: 6a7cd685b09e111288c4f59588cc1285d3f3a3dcdcaae71d1cd51ce95001c617
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
require 'simplecov' require 'coveralls' require 'twitter' require 'rspec' require 'stringio' require 'tempfile' require 'timecop' require 'webmock/rspec' WebMock.disable_net_connect!(:allow => 'coveralls.io') RSpec.configure do |config| config.expect_with :rspec do |c| c.syntax = :expect end end def a_delete(path) a_request(:delete, Twitter::REST::Client::URL_PREFIX + path) end def a_get(path) a_request(:get, Twitter::REST::Client::URL_PREFIX + path) end def a_post(path) a_request(:post, Twitter::REST::Client::URL_PREFIX + path) end def a_put(path) a_request(:put, Twitter::REST::Client::URL_PREFIX + path) end def stub_delete(path) stub_request(:delete, Twitter::REST::Client::URL_PREFIX + path) end def stub_get(path) stub_request(:get, Twitter::REST::Client::URL_PREFIX + path) end def stub_post(path) stub_request(:post, Twitter::REST::Client::URL_PREFIX + path) end def stub_put(path) stub_request(:put, Twitter::REST::Client::URL_PREFIX + path) end def fixture_path File.expand_path('../fixtures', __FILE__) end def fixture(file) File.new(fixture_path + '/' + file) end def capture_warning begin old_stderr = $stderr $stderr = StringIO.new yield result = $stderr.string ensure $stderr = old_stderr end result end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
twitter-5.11.0 | spec/helper.rb |
twitter-5.10.0 | spec/helper.rb |