discourse/migrations/spec/rails_helper.rb
2025-10-06 16:29:34 +02:00

16 lines
467 B
Ruby

# frozen_string_literal: true
# we need to require the rails_helper from core to load the Rails environment
require_relative "../../spec/rails_helper"
require_relative "../migrations"
::Migrations.configure_zeitwerk
::Migrations.enable_i18n
::Migrations.apply_global_config
require "rspec-multi-mock"
Dir[File.expand_path("./support/**/*.rb", __dir__)].each { |f| require f }
RSpec.configure { |config| config.mock_with MultiMock::Adapter.for(:rspec, :mocha) }