Sha256: 95f963aa6ce3572b465ea83c0fcee76fcf589338e99bd41e25ed842c070815b2
Contents?: true
Size: 766 Bytes
Versions: 4
Compression:
Stored size: 766 Bytes
Contents
# -*- encoding : utf-8 -*- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rubygems' require 'bundler' begin Bundler.setup(:default, :test) rescue Bundler::BundlerError => e $stderr.puts e.message $stderr.puts "Run `bundle install` to install missing gems" exit e.status_code end require 'exchange' require 'dalli' module HelperMethods def fixture(name) File.read(File.dirname(__FILE__) + "/support/#{name}") end def mock_api(adress, response, count=1) @uri_mock = mock('uri', :open => mock('opened_uri', :read => response)) URI.should_receive(:parse).with(adress).at_most(count).times.and_return(@uri_mock) end end RSpec.configuration.include(HelperMethods)
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
exchange-1.1.0 | spec/spec_helper.rb |
exchange-1.0.4 | spec/spec_helper.rb |
exchange-1.0.2 | spec/spec_helper.rb |
exchange-1.0.0 | spec/spec_helper.rb |