File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ module Rails
37
37
# date). If so, we turn the auto runner off.
38
38
require 'test/unit'
39
39
require 'test/unit/assertions'
40
- Test ::Unit ::AutoRunner . need_auto_run = false if defined? ( Test ::Unit ::AutoRunner )
40
+ Test ::Unit ::AutoRunner . need_auto_run = false if defined? ( Test ::Unit ::AutoRunner . need_auto_run = ( ) )
41
41
rescue LoadError => e
42
42
raise LoadError , <<-ERR . squish , e . backtrace
43
43
Ruby 2.2+ has removed test/unit from the core library. Rails
@@ -62,7 +62,7 @@ module Rails
62
62
require 'test/unit/assertions'
63
63
end
64
64
# Turn off test unit's auto runner for those using the gem
65
- Test ::Unit ::AutoRunner . need_auto_run = false if defined? ( Test ::Unit ::AutoRunner )
65
+ Test ::Unit ::AutoRunner . need_auto_run = false if defined? ( Test ::Unit ::AutoRunner . need_auto_run = ( ) )
66
66
# Constant aliased to either Minitest or TestUnit, depending on what is
67
67
# loaded.
68
68
Assertions = Test ::Unit ::Assertions
You can’t perform that action at this time.
0 commit comments