test-unit 3.6.6 → 3.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/doc/text/news.md +6 -0
- data/lib/test/unit/test-suite-runner.rb +9 -5
- data/lib/test/unit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 238d27a3abf3ab70fa38affa00e2fd5944adde841397d1a5307b68eff94362c2
|
4
|
+
data.tar.gz: 6e6ef248d44e47e83bb45d24b160dfdccb32d167123534445d49c7358bcb3bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44cb65959ff5ee6e9673901218b9a29494158a822682d9d12a4b5ba7ce21f965ef87fdf3a697b8d07c91ca7b1fe9f1f0cee7bf6b3da4d74485fd221dcc03fe2c
|
7
|
+
data.tar.gz: 327924d71d4ec015870afec579d9936a6e0425dada2c3b6185a10ce9a2f11e9b5666f9b41641fe994e4150a513d4dd659517181ab31158881595502a77cac708
|
data/doc/text/news.md
CHANGED
@@ -65,11 +65,7 @@ module Test
|
|
65
65
|
finished_is_yielded = false
|
66
66
|
finished_object_is_yielded = false
|
67
67
|
previous_event_name = nil
|
68
|
-
|
69
|
-
# For backward compatibility. There are scripts that overrides
|
70
|
-
# Test::Unit::TestCase#run without keyword arguments.
|
71
|
-
options[:runner_class] = self.class if test.method(:run).arity == -2
|
72
|
-
test.run(result, **options) do |event_name, *args|
|
68
|
+
event_listener = lambda do |event_name, *args|
|
73
69
|
case previous_event_name
|
74
70
|
when Test::Unit::TestCase::STARTED
|
75
71
|
if event_name != Test::Unit::TestCase::STARTED_OBJECT
|
@@ -94,6 +90,14 @@ module Test
|
|
94
90
|
yield(event_name, *args)
|
95
91
|
end
|
96
92
|
|
93
|
+
if test.method(:run).arity == -2
|
94
|
+
test.run(result, runner_class: self.class, &event_listener)
|
95
|
+
else
|
96
|
+
# For backward compatibility. There are scripts that overrides
|
97
|
+
# Test::Unit::TestCase#run without keyword arguments.
|
98
|
+
test.run(result, &event_listener)
|
99
|
+
end
|
100
|
+
|
97
101
|
if finished_is_yielded and not finished_object_is_yielded
|
98
102
|
yield(Test::Unit::TestCase::FINISHED_OBJECT, test)
|
99
103
|
end
|
data/lib/test/unit/version.rb
CHANGED