spec_helper.rb 478 B

123456789101112131415161718192021222324
  1. require 'goldfinger'
  2. require 'webmock/rspec'
  3. require 'pry'
  4. WebMock.disable_net_connect!
  5. RSpec.configure do |config|
  6. config.expect_with :rspec do |expectations|
  7. expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  8. end
  9. config.mock_with :rspec do |mocks|
  10. mocks.verify_partial_doubles = true
  11. end
  12. end
  13. def fixture_path(path)
  14. File.join(File.expand_path('../fixtures', __FILE__), path)
  15. end
  16. def fixture(path)
  17. File.new(fixture_path(path))
  18. end