Sha256: 038b933e86586153f2ffc970970cec3a8e47fa9636123b3260b0437cb0b65d17

Contents?: true

Size: 951 Bytes

Versions: 1

Compression:

Stored size: 951 Bytes

Contents

$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
SimpleCov.start
require 'aids_info'
require 'rspec'

require 'webmock/rspec'

def a_delete(path)
  a_request(:delete, 'http://aidsinfo.nih.gov/' + path)
end

def a_get(path)
  a_request(:get, 'http://aidsinfo.nih.gov/' + path)
end

def a_post(path)
  a_request(:post, 'http://aidsinfo.nih.gov/' + path)
end

def a_put(path)
  a_request(:put, 'http://aidsinfo.nih.gov/' + path)
end

def stub_delete(path)
  stub_request(:delete, 'http://aidsinfo.nih.gov/' + path)
end

def stub_get(path)
  stub_request(:get, 'http://aidsinfo.nih.gov/' + path)
end

def stub_post(path)
  stub_request(:post, 'http://aidsinfo.nih.gov/' + path)
end

def stub_put(path)
  stub_request(:put, 'http://aidsinfo.nih.gov/' + 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
aids_info-1.0.0 spec/helper.rb