Sha256: b4c46cfadd1e2b6c9e5ae2ccc9619c10fee9c4a7a6df72ae5bc631481576a5d3

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

unless ENV['CI']
  require 'simplecov'
  SimpleCov.start do
    add_filter '.bundle'
    add_group 'Instapaper', 'lib/instapaper'
    add_group 'Specs', 'spec'
  end
end

require 'instapaper'
require 'rspec'
require 'webmock/rspec'

def a_delete(path)
  a_request(:delete, Instapaper.endpoint_with_prefix + path)
end

def a_get(path)
  a_request(:get, Instapaper.endpoint_with_prefix + path)
end

def a_post(path)
  a_request(:post, Instapaper.endpoint_with_prefix + path)
end

def a_put(path)
  a_request(:put, Instapaper.endpoint_with_prefix + path)
end

def stub_delete(path)
  stub_request(:delete, Instapaper.endpoint_with_prefix + path)
end

def stub_get(path)
  stub_request(:get, Instapaper.endpoint_with_prefix + path)
end

def stub_post(path)
  stub_request(:post, Instapaper.endpoint_with_prefix + path)
end

def stub_put(path)
  stub_request(:put, Instapaper.endpoint_with_prefix + path)
end

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
instapaper-0.3.0 spec/spec_helper.rb