# frozen_string_literal: true ENV['RAILS_ENV'] ||= 'test' require 'simplecov' # Generate Simplecov report SimpleCov.start require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'shoulda/matchers' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } RSpec.configure do |config| config.infer_spec_type_from_file_location! config.order = 'random' config.expect_with :rspec do |c| c.syntax = :expect end end