Sha256: 20186def5b3914dad9a1420f2e3fb71a674ba7664ba1841ed199ecd8d61ad250

Contents?: true

Size: 804 Bytes

Versions: 22

Compression:

Stored size: 804 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

22 entries across 21 versions & 7 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/spec/spec_helper.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/spec/spec_helper.rb
httsoiree-0.13.3 spec/spec_helper.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
httparty-0.13.3 spec/spec_helper.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
httparty-0.13.2 spec/spec_helper.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/spec/spec_helper.rb
httsoiree-0.13.1.1 spec/spec_helper.rb
httsoiree-0.13.1 spec/spec_helper.rb
httparty-enterprise-edition-0.13.1.1 spec/spec_helper.rb
httparty-enterprise-edition-0.13.1 spec/spec_helper.rb
httparty-0.13.1 spec/spec_helper.rb