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(:suite) do load Rails.root.join("db/seeds/plans.rb") end config.before(:each, type: :request) do host! "www.example.com" end end