$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'trade_queen'
require 'webmock/rspec'
require 'timecop'

def fixture(file)
  File.new("#{File.expand_path('../fixtures', __FILE__)}/#{file}")
end

def stub_post(url)
  stub_request(:post, TradeQueen::Client::BASE_URL + url)
end

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'trade_queen'
require 'webmock/rspec'
require 'timecop'

def fixture(file)
  File.new("#{File.expand_path('../fixtures', __FILE__)}/#{file}").read
end

def stub_post(url)
  stub_request(:post, TradeQueen::Rest::Client::BASE_URL + url)
end

Fix up the spec helpers.
Fix up the spec helpers.

- for #fixtuere, don’t just return a file, return the string in the file
- for #stub_post, use the right namespace.
