Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4321b764ba
Fetching contributors…

Cannot retrieve contributors at this time

60 lines (47 sloc) 1.072 kb
begin
require 'simplecov'
rescue LoadError
# ignore
else
SimpleCov.start do
add_group 'Instagram', 'lib/instagram'
add_group 'Faraday Middleware', 'lib/faraday'
add_group 'Specs', 'spec'
end
end
require File.expand_path('../../lib/instagram', __FILE__)
require 'rspec'
require 'webmock/rspec'
RSpec.configure do |config|
config.include WebMock::API
end
def a_delete(path)
a_request(:delete, Instagram.endpoint + path)
end
def a_get(path)
a_request(:get, Instagram.endpoint + path)
end
def a_post(path)
a_request(:post, Instagram.endpoint + path)
end
def a_put(path)
a_request(:put, Instagram.endpoint + path)
end
def stub_delete(path)
stub_request(:delete, Instagram.endpoint + path)
end
def stub_get(path)
stub_request(:get, Instagram.endpoint + path)
end
def stub_post(path)
stub_request(:post, Instagram.endpoint + path)
end
def stub_put(path)
stub_request(:put, Instagram.endpoint + path)
end
def fixture_path
File.expand_path("../fixtures", __FILE__)
end
def fixture(file)
File.new(fixture_path + '/' + file)
end
Jump to Line
Something went wrong with that request. Please try again.