Sha256: 2b94b18342042543f741e4a194b083e79e91b33666234c970b37281d48870dc0

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

require 'simplecov'
SimpleCov.start do
  add_group 'Smoodit', 'lib/smoodit'
  add_group 'Faraday Middleware', 'lib/faraday'
  add_group 'Specs', 'spec'
end

require File.expand_path('../../lib/smoodit', __FILE__)

require 'rspec'
require 'webmock/rspec'
RSpec.configure do |config|
  config.include WebMock::API
end

def a_delete(path)
  a_request(:delete, Smoodit.endpoint + path)
end

def a_get(path)
  a_request(:get, Smoodit.endpoint + path)
end

def a_post(path)
  a_request(:post, Smoodit.endpoint + path)
end

def a_put(path)
  a_request(:put, Smoodit.endpoint + path)
end

def stub_delete(path)
  stub_request(:delete, Smoodit.endpoint + path)
end

def stub_get(path)
  stub_request(:get, Smoodit.endpoint + path)
end

def stub_post(path)
  stub_request(:post, Smoodit.endpoint + path)
end

def stub_put(path)
  stub_request(:put, Smoodit.endpoint + path)
end

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
smoodit-0.0.2 spec/spec_helper.rb
smoodit-0.0.1 spec/spec_helper.rb