Sha256: ec051eb6a7c148e1dc4dd848fc450ac893ab6fa4cad29f9d01fce76e37cdc4be

Contents?: true

Size: 579 Bytes

Versions: 1

Compression:

Stored size: 579 Bytes

Contents

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

require 'ted_api'
require 'rspec'
require 'webmock/rspec'

def a_get(url)
  a_request(:get, ted_url(url))
end

def a_post(url)
  a_request(:post, ted_url(url))
end

def stub_get(url)
  stub_request(:get, ted_url(url))
end

def stub_post(url)
  stub_request(:post, ted_url(url))
end

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

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

def ted_url(url)
  "https://api.ted.com/#{@client.api_version}/#{url}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ted_api-0.1 spec/spec_helper.rb