Senza questo la suite locale fallisce sulla complessità password e sui piani mancanti. Co-authored-by: Cursor <cursoragent@cursor.com>
20 lines
459 B
Ruby
20 lines
459 B
Ruby
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
|