Sha256: b04b13cb13ea6bf10c71548ac8ac3e3d3ce3df5ff0682c48585538b6620cfc4e
Contents?: true
Size: 674 Bytes
Versions: 36
Compression:
Stored size: 674 Bytes
Contents
$:.push File.expand_path("../lib", __FILE__) require "httparty" require 'spec/autorun' require 'fakeweb' def file_fixture(filename) open(File.join(File.dirname(__FILE__), 'fixtures', "#{filename.to_s}")).read end Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} Spec::Runner.configure do |config| config.include HTTParty::StubResponse config.include HTTParty::SSLTestHelper config.before(:suite) do FakeWeb.allow_net_connect = false end config.after(:suite) do FakeWeb.allow_net_connect = true end end Spec::Matchers.define :use_ssl do match do |connection| connection.use_ssl? end end
Version data entries
36 entries across 36 versions & 3 rubygems