Sha256: 870e8df4fc541bf222bd8056297cf1e503b890a58c4fdf184df93a795aa7c3f3
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
require 'rest-client' require 'tophatter_merchant' require 'webmock/rspec' WebMock.disable_net_connect!(allow_localhost: true) # http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration RSpec.configure do |config| config.expect_with :rspec do |expectations| expectations.include_chain_clauses_in_custom_matcher_descriptions = true end config.mock_with :rspec do |mocks| mocks.verify_partial_doubles = true end config.before(:each) do stub_request(:get, /.*metadata\.json/).to_return(File.new(File.dirname(__FILE__) + '/../tmp/stubs/metadata.json')) stub_request(:get, /.*conditions\.json/).to_return(File.new(File.dirname(__FILE__) + '/../tmp/stubs/metadata/conditions.json')) stub_request(:get, /.*gemstones\.json/).to_return(File.new(File.dirname(__FILE__) + '/../tmp/stubs/metadata/gemstones.json')) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tophatter-merchant-1.0 | spec/spec_helper.rb |