Sha256: 2d95864c9bf865f477b5edaf1276aef41e71bedf86970d5cc2e25e655529c587

Contents?: true

Size: 958 Bytes

Versions: 2

Compression:

Stored size: 958 Bytes

Contents

unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec'
  end
end

require 'twitter'
require 'rspec'
require 'stringio'
require 'tempfile'
require 'timecop'
require 'webmock/rspec'

def a_delete(path)
  a_request(:delete, 'https://api.twitter.com' + path)
end

def a_get(path)
  a_request(:get, 'https://api.twitter.com' + path)
end

def a_post(path)
  a_request(:post, 'https://api.twitter.com' + path)
end

def a_put(path)
  a_request(:put, 'https://api.twitter.com' + path)
end

def stub_delete(path)
  stub_request(:delete, 'https://api.twitter.com' + path)
end

def stub_get(path)
  stub_request(:get, 'https://api.twitter.com' + path)
end

def stub_post(path)
  stub_request(:post, 'https://api.twitter.com' + path)
end

def stub_put(path)
  stub_request(:put, 'https://api.twitter.com' + 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
twitter-4.1.0 spec/helper.rb
twitter-4.0.0 spec/helper.rb