Module: MultiTest
- Defined in:
- lib/multi_test.rb,
lib/multi_test/minitest_world.rb,
lib/multi_test/assertion_library.rb
Defined Under Namespace
Modules: MinitestWorld
Classes: AssertionLibrary
Class Method Summary
collapse
Class Method Details
.disable_autorun ⇒ Object
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/multi_test.rb', line 3
def self.disable_autorun
if defined?(Test::Unit::Runner)
Test::Unit::Runner.module_eval("@@stop_auto_run = true")
end
if defined?(Minitest)
Minitest.instance_eval do
def run(*)
case $!
when SystemExit
$!.status
else
true
end
end
end
if defined?(Minitest::Unit)
Minitest::Unit.class_eval do
def run(*)
end
end
end
end
end
|
.extend_with_best_assertion_library(object) ⇒ Object
30
31
32
|
# File 'lib/multi_test.rb', line 30
def self.extend_with_best_assertion_library(object)
AssertionLibrary.detect_best.extend_world(object)
end
|