Sha256: 30a4bbdc6bf7fd5f541bd4148db5b7bbc8834ba75e64a369592702ecc34eb75e

Contents?: true

Size: 1022 Bytes

Versions: 1

Compression:

Stored size: 1022 Bytes

Contents

begin
  require 'simplecov'
rescue LoadError
  # ignore
else
  SimpleCov.start do
    add_group 'Sambatech', 'lib/Sambatech'
    add_group 'Specs', 'spec'
  end
end

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

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

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

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

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

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

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

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

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

def stub_put(path)
  stub_request(:put, Sambatech.endpoint + 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
sambatech-0.0.1 spec/spec_helper.rb