Skip to content

Commit

Permalink
Added spec helper file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Resella committed Oct 10, 2011
1 parent 00394b3 commit 2f3a01a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions spec/helper.rb
@@ -0,0 +1,25 @@
$:.unshift File.expand_path('..', __FILE__)
$:.unshift File.expand_path('../../lib', __FILE__)
require 'simplecov'
SimpleCov.start
require 'windy'
require 'rspec'
require 'webmock/rspec'


def a_get(path)
a_request(:get, 'http://data.cityofchicago.org/' + path)
end

def stub_get(path)
stub_request(:get, 'http://data.cityofchicago.org/' + path)
end

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

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

0 comments on commit 2f3a01a

Please sign in to comment.