We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bc02c2 commit 6b212beCopy full SHA for 6b212be
spec/dummy/config/application.rb
@@ -6,6 +6,8 @@
6
# require "action_mailer/railtie"
7
# require "sprockets/railtie"
8
9
+# Workaround for Rails 6 requiring Logger before ActiveSupport modules
10
+require 'logger'
11
require 'rails/all'
12
# require "rails/test_unit/railtie"
13
spec/dummy/config/environments/test.rb
@@ -33,4 +33,9 @@
33
34
# Print deprecation notices to the stderr.
35
config.active_support.deprecation = :stderr
36
+
37
+ # Allow unsafe YAML loading for tests with Rails >= 6
38
+ if defined?(ActiveRecord::Base) && ActiveRecord::Base.respond_to?(:use_yaml_unsafe_load=)
39
+ ActiveRecord::Base.use_yaml_unsafe_load = true
40
+ end
41
end
0 commit comments