diff options
Diffstat (limited to 'guides/bug_report_templates/action_controller_gem.rb')
-rw-r--r-- | guides/bug_report_templates/action_controller_gem.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/guides/bug_report_templates/action_controller_gem.rb b/guides/bug_report_templates/action_controller_gem.rb index 89ac28671a..9387e3dc1d 100644 --- a/guides/bug_report_templates/action_controller_gem.rb +++ b/guides/bug_report_templates/action_controller_gem.rb @@ -29,7 +29,10 @@ end require 'minitest/autorun' require 'rack/test' -class BugTest < MiniTest::Unit::TestCase +# Ensure backward compatibility with Minitest 4 +Minitest::Test = MiniTest::Unit::TestCase unless defined?(Minitest::Test) + +class BugTest < Minitest::Test include Rack::Test::Methods def test_returns_success @@ -41,4 +44,4 @@ class BugTest < MiniTest::Unit::TestCase def app Rails.application end -end
\ No newline at end of file +end |