Sha256: 4527ef3a4347c6d025f6639f3971389e3e3ab1833305cf3bc3e26796bd834ca3
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 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 Spec::Matchers.define :use_cert_store do |cert_store| match do |connection| connection.cert_store == cert_store end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
httparty-0.12.0 | spec/spec_helper.rb |