Sha256: a3a3b10991d2be2320aeab8833adf6bbd7ad69f929bf46280f963121913c05d5

Contents?: true

Size: 1.06 KB

Versions: 10

Compression:

Stored size: 1.06 KB

Contents

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

ENV['THOR_COLUMNS'] = "80"

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 project_path
  File.expand_path("../..", __FILE__)
end

def fixture_path
  File.expand_path("../fixtures", __FILE__)
end

def fixture(file)
  File.new(fixture_path + '/' + file)
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
t-1.0.1 spec/helper.rb
t-1.0.0 spec/helper.rb
t-0.9.5 spec/helper.rb
t-0.9.4 spec/helper.rb
t-0.9.3 spec/helper.rb
t-0.9.2 spec/helper.rb
t-0.9.1 spec/helper.rb
t-0.9.0 spec/helper.rb
t-0.8.3 spec/helper.rb
t-0.8.2 spec/helper.rb