aboutsummaryrefslogtreecommitdiffstats
path: root/guides/bug_report_templates/active_record_gem.rb
diff options
context:
space:
mode:
Diffstat (limited to 'guides/bug_report_templates/active_record_gem.rb')
-rw-r--r--guides/bug_report_templates/active_record_gem.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/bug_report_templates/active_record_gem.rb b/guides/bug_report_templates/active_record_gem.rb
index 63fbe27aed..d72633d0b2 100644
--- a/guides/bug_report_templates/active_record_gem.rb
+++ b/guides/bug_report_templates/active_record_gem.rb
@@ -4,6 +4,9 @@ require 'active_record'
require 'minitest/autorun'
require 'logger'
+# Ensure backward compatibility with Minitest 4
+Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test)
+
# This connection will do for database-independent bug reports.
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')
ActiveRecord::Base.logger = Logger.new(STDOUT)