mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Upgrade Rails to version 7.1 (#27539)
* DEV: Upgrade Rails to 7.1
* FIX: Remove references to `Rails.logger.chained`
`Rails.logger.chained` was provided by Logster before Rails 7.1
introduced their broadcast logger. Now all the loggers are added to
`Rails.logger.broadcasts`.
Some code in our initializers was still using `chained` instead of
`broadcasts`.
* DEV: Make parameters optional to all FakeLogger methods
* FIX: Set `override_level` on Logster loggers (#27519)
A followup to f595d599dd
* FIX: Don’t duplicate Rack response
---------
Co-authored-by: Jarek Radosz <jradosz@gmail.com>
This commit is contained in:
@@ -245,7 +245,7 @@ RSpec.configure do |config|
|
||||
CachedCounting.disable
|
||||
|
||||
begin
|
||||
ActiveRecord::Migration.check_pending!
|
||||
ActiveRecord::Migration.check_all_pending!
|
||||
rescue ActiveRecord::PendingMigrationError
|
||||
raise "There are pending migrations, run RAILS_ENV=test bin/rake db:migrate"
|
||||
end
|
||||
@@ -718,7 +718,7 @@ RSpec.configure do |config|
|
||||
end
|
||||
|
||||
config.after(:each, type: :multisite) do
|
||||
ActiveRecord::Base.clear_all_connections!
|
||||
ActiveRecord::Base.connection_handler.clear_all_connections!
|
||||
Rails.configuration.multisite = false # rubocop:disable Discourse/NoDirectMultisiteManipulation
|
||||
RailsMultisite::ConnectionManagement.clear_settings!
|
||||
ActiveRecord::Base.establish_connection
|
||||
|
||||
Reference in New Issue
Block a user