main
 1# frozen_string_literal: true
 2
 3require 'simplecov'
 4SimpleCov.start do
 5  add_filter '/spec/'
 6end
 7require 'bundler/setup'
 8require 'xml/kit'
 9require 'ffaker'
10require 'active_support/core_ext/hash/conversions'
11require 'tempfile'
12
13Xml::Kit.logger.level = Logger::FATAL
14
15Dir[File.join(Dir.pwd, 'spec/support/**/*.rb')].sort.each { |f| require f }
16RSpec.configure do |config|
17  # Enable flags like --only-failures and --next-failure
18  config.example_status_persistence_file_path = '.rspec_status'
19
20  # Disable RSpec exposing methods globally on `Module` and `main`
21  config.disable_monkey_patching!
22
23  config.expect_with :rspec do |c|
24    c.syntax = :expect
25  end
26end