Skip to content

Commit 4fd22b6

Browse files
committed
disable test unit auto runner
1 parent e5e0bee commit 4fd22b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

spec/rspec/active_model/mocks/mock_model_spec.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,11 @@
444444
ERR
445445
end
446446
include Test::Unit::Assertions
447+
if defined?(Test::Unit::AutoRunner.need_auto_run = ())
448+
Test::Unit::AutoRunner.need_auto_run = false
449+
elsif defined?(Test::Unit.run = ())
450+
Test::Unit.run = false
451+
end
447452
else
448453
raise LoadError, <<-ERR.squeeze
449454
Ruby 2.2+ doesn't support this version of Rails #{version}
@@ -452,6 +457,11 @@
452457
else
453458
require 'test/unit/assertions'
454459
include Test::Unit::Assertions
460+
if defined?(Test::Unit::AutoRunner.need_auto_run = ())
461+
Test::Unit::AutoRunner.need_auto_run = false
462+
elsif defined?(Test::Unit.run = ())
463+
Test::Unit.run = false
464+
end
455465
end
456466
end
457467

0 commit comments

Comments
 (0)