discourse/migrations/spec/rails_helper.rb
Gerhard Schlager 71a90dcba2 DEV: Refactor migrations-tooling
* Updates GitHub Action for migrations
* Rubocop: Always `EnforcedShorthandSyntax` for hashes in the `migrations` directory
* Automatically load all available converter steps
* Enable YJIT at runtime, if available
* Progressbar shows skipped records and other small improvements
2025-04-07 17:22:36 +02:00

16 lines
434 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
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) }