Sha256: 9ae678cbc1fa312aa5b0e3431fe677975dc1423d872c0f0013485127621801bd

Contents?: true

Size: 996 Bytes

Versions: 4

Compression:

Stored size: 996 Bytes

Contents

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


def a_delete(path)
  a_request(:delete, 'http://api.worldbank.org/v2/' + path)
end

def a_get(path)
  a_request(:get, 'http://api.worldbank.org/v2/' + path)
end

def a_post(path)
  a_request(:post, 'http://api.worldbank.org/v2/' + path)
end

def a_put(path)
  a_request(:put, 'http://api.worldbank.org/v2/' + path)
end

def stub_delete(path)
  stub_request(:delete, 'http://api.worldbank.org/v2/' + path)
end

def stub_get(path)
  stub_request(:get, 'http://api.worldbank.org/v2/' + path)
end

def stub_post(path)
  stub_request(:post, 'http://api.worldbank.org/v2/' + path)
end

def stub_put(path)
  stub_request(:put, 'http://api.worldbank.org/v2/' + path)
end

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
worldbank_as_dataframe-0.2.1 spec/helper.rb
worldbank_as_dataframe-0.2 spec/helper.rb
worldbank_as_dataframe-0.1.1 spec/helper.rb
worldbank_as_dataframe-0.1.0 spec/helper.rb