Sha256: fdfd5b0c8936cebe514f482254c38936c02ccf80f9324a9f5310d1bf19dfc734

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

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'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
end

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

4 entries across 4 versions & 1 rubygems

Version Path
twitter-4.3.0 spec/helper.rb
twitter-4.2.0 spec/helper.rb
twitter-4.1.2 spec/helper.rb
twitter-4.1.1 spec/helper.rb