ENV["RAILS_ENV"] = "test" require_relative "../config/environment" require "rspec/rails" RSpec.configure do |config| config.include ActiveSupport::Testing::TimeHelpers config.use_transactional_fixtures = true config.infer_spec_type_from_file_location! config.filter_rails_from_backtrace! config.before(:each, type: :request) do host! "www.example.com" end end