Sha256: 7fc458821fb0ae78bdddd75e3496bf521f951ce4b0fe6390a692e75c10bfbab7
Contents?: true
Size: 995 Bytes
Versions: 5
Compression:
Stored size: 995 Bytes
Contents
require 'rubygems' require 'rack/reverse_proxy' require 'rspec' require 'rack/test' require 'webmock/rspec' # Patch HttpStreamingResponse to make rack-proxy compatible with webmocks require 'support/http_streaming_response_patch' $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') $LOAD_PATH << File.join(File.dirname(__FILE__)) RSpec.configure do |config| config.expect_with :rspec do |expectations| # This option will default to `true` in RSpec 4. expectations.include_chain_clauses_in_custom_matcher_descriptions = true expectations.syntax = [:should] end config.mock_with :rspec do |mocks| mocks.verify_doubled_constant_names = true mocks.verify_partial_doubles = true mocks.syntax = [:should] # Prevents you from mocking or stubbing a method that does not exist on # a real object. This is generally recommended, and will default to # `true` in RSpec 4. mocks.verify_partial_doubles = true end WebMock.disable_net_connect! end
Version data entries
5 entries across 5 versions & 1 rubygems