Sha256: 835e4d844dcb9ccd3bbbc7d5d7504f7c424ad1bcf75306bedd874a6e5ad52942

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require 'simplecov'
SimpleCov.start
require 'commons'
require 'rspec'
require 'webmock/rspec'

def a_get(url)
  a_request(:get, commons_url(url))
end

def stub_get(url)
  stub_request(:get, commons_url(url))
end

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

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

def commons_url(url)
  "http://marketplace.civiccommons.org/api/v1#{url}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
commons-0.0.1 spec/helper.rb