Sha256: 5c8f90e40cfa2319f8504a21d62d858b189ce145c61fb171f81911498d9cb794

Contents?: true

Size: 1.05 KB

Versions: 19

Compression:

Stored size: 1.05 KB

Contents

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

Version data entries

19 entries across 19 versions & 3 rubygems

Version Path
instagram-1.1.4 spec/spec_helper.rb
instagram-1.1.3 spec/spec_helper.rb
instagram-1.1.2 spec/spec_helper.rb
instagram-1.1.1 spec/spec_helper.rb
instagram-1.1.0 spec/spec_helper.rb
instagram-1.0.0 spec/spec_helper.rb
instagram-0.11.0 spec/spec_helper.rb
instagram-0.10.0 spec/spec_helper.rb
instagram-0.9.1 spec/spec_helper.rb
instagram-0.9.0 spec/spec_helper.rb
instagram-0.8.5 spec/spec_helper.rb
instagram-0.8.4 spec/spec_helper.rb
instagram-0.8.3 spec/spec_helper.rb
instagram-0.8.2 spec/spec_helper.rb
instagram-fixed-0.8.1 spec/spec_helper.rb
instagram-fixed-0.8 spec/spec_helper.rb
instagram-innonate-0.8 spec/spec_helper.rb
instagram-0.8 spec/spec_helper.rb
instagram-0.7 spec/spec_helper.rb