forking_test_runner 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/forking_test_runner.rb +4 -8
- data/lib/forking_test_runner/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c7dc622ff1b3350704d3ccf31cf25c1d51b13ee4
|
4
|
+
data.tar.gz: 5cdb2b8430b13547d2cafcb9cbaa752565fad7db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e45ea05cbbb26bebb567c1462026648a980a0f4dde7bc0b5bad0093c85459a01e28d7ab5dcf7dd5edd72597e25ae742e455fc8973f2d55aef750c96e4f02a26
|
7
|
+
data.tar.gz: 9f27f7a7a11484da1548c838553e8d5b08249e405491d7d30f8f96a91d4e2351efa40a21e091d1395253deb6ccb8c29322d4f0f9c4ab09e653d17bdb94636369
|
data/lib/forking_test_runner.rb
CHANGED
@@ -84,16 +84,12 @@ module ForkingTestRunner
|
|
84
84
|
private
|
85
85
|
|
86
86
|
def toggle_minitest_autorun(value)
|
87
|
-
begin
|
88
|
-
require 'minitest/
|
87
|
+
klass = begin
|
88
|
+
require 'minitest/unit' # only exists on 4
|
89
|
+
MiniTest::Unit
|
89
90
|
rescue LoadError
|
90
|
-
require 'minitest/
|
91
|
-
end
|
92
|
-
klass = if defined?(Minitest::Test)
|
91
|
+
require 'minitest/test' # exists on 5 and 4 with minitest-rails
|
93
92
|
Minitest
|
94
|
-
else
|
95
|
-
# require 'minitest/unit'
|
96
|
-
MiniTest::Unit
|
97
93
|
end
|
98
94
|
klass.class_variable_set("@@installed_at_exit", !value)
|
99
95
|
klass.autorun if value
|