mirror of
https://github.com/discourse/discourse.git
synced 2025-04-25 23:14:30 +08:00

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