minitest 5.11.2 → 5.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +6 -0
- data/lib/minitest.rb +8 -8
- data/test/minitest/test_minitest_reporter.rb +3 -3
- data/test/minitest/test_minitest_test.rb +11 -4
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c82c1408c60d4743cf06566256146090f22ab11bc5f024cbf4026fd967d7eb6
|
4
|
+
data.tar.gz: 93e140e22554c00911e381fa0584c52add681e5adb34bc3e575ee79459d7df6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3621855d2763f225b2b99061c9eed994040debd9b1b032ebb3318adc42413493458b5c47569b7305954fc7575e870ad97441ce8bec7ddadb92afdd126f1f4bda
|
7
|
+
data.tar.gz: 19e04c6feff4f3d0cda89fadf4bd3f28415301d8adb2e5650a064cb74df57d8ee9885175738ac967d7a839496ac1c0f1c690627e8a2ca83f71edd6b0edb5b811
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/lib/minitest.rb
CHANGED
@@ -8,7 +8,7 @@ require "stringio"
|
|
8
8
|
# :include: README.rdoc
|
9
9
|
|
10
10
|
module Minitest
|
11
|
-
VERSION = "5.11.
|
11
|
+
VERSION = "5.11.3" # :nodoc:
|
12
12
|
ENCS = "".respond_to? :encoding # :nodoc:
|
13
13
|
|
14
14
|
@@installed_at_exit ||= false
|
@@ -477,6 +477,13 @@ module Minitest
|
|
477
477
|
def skipped?
|
478
478
|
self.failure and Skip === self.failure
|
479
479
|
end
|
480
|
+
|
481
|
+
##
|
482
|
+
# Did this run error?
|
483
|
+
|
484
|
+
def error?
|
485
|
+
self.failures.any? { |f| UnexpectedError === f }
|
486
|
+
end
|
480
487
|
end
|
481
488
|
|
482
489
|
##
|
@@ -519,13 +526,6 @@ module Minitest
|
|
519
526
|
r
|
520
527
|
end
|
521
528
|
|
522
|
-
##
|
523
|
-
# Did this run error?
|
524
|
-
|
525
|
-
def error?
|
526
|
-
self.failures.any? { |f| UnexpectedError === f }
|
527
|
-
end
|
528
|
-
|
529
529
|
def class_name # :nodoc:
|
530
530
|
self.klass # for Minitest::Reportable
|
531
531
|
end
|
@@ -90,13 +90,13 @@ class TestMinitestReporter < MetaMetaMetaTestCase
|
|
90
90
|
end
|
91
91
|
|
92
92
|
def test_passed_eh_empty
|
93
|
-
|
93
|
+
assert_predicate r, :passed?
|
94
94
|
end
|
95
95
|
|
96
96
|
def test_passed_eh_failure
|
97
97
|
r.results << fail_test
|
98
98
|
|
99
|
-
|
99
|
+
refute_predicate r, :passed?
|
100
100
|
end
|
101
101
|
|
102
102
|
SKIP_MSG = "\n\nYou have skipped tests. Run with --verbose for details."
|
@@ -106,7 +106,7 @@ class TestMinitestReporter < MetaMetaMetaTestCase
|
|
106
106
|
|
107
107
|
r.results << error_test
|
108
108
|
|
109
|
-
|
109
|
+
refute_predicate r, :passed?
|
110
110
|
|
111
111
|
r.report
|
112
112
|
|
@@ -124,7 +124,10 @@ class TestMinitestUnit < MetaMetaMetaTestCase
|
|
124
124
|
|
125
125
|
test = test_class.new :test_omg
|
126
126
|
test.run
|
127
|
-
|
127
|
+
|
128
|
+
refute_predicate test, :error?
|
129
|
+
assert_predicate test, :passed?
|
130
|
+
refute_predicate test, :skipped?
|
128
131
|
end
|
129
132
|
|
130
133
|
def test_passed_eh_teardown_skipped
|
@@ -136,8 +139,9 @@ class TestMinitestUnit < MetaMetaMetaTestCase
|
|
136
139
|
test = test_class.new :test_omg
|
137
140
|
test.run
|
138
141
|
|
139
|
-
|
140
|
-
|
142
|
+
refute_predicate test, :error?
|
143
|
+
refute_predicate test, :passed?
|
144
|
+
assert_predicate test, :skipped?
|
141
145
|
end
|
142
146
|
|
143
147
|
def test_passed_eh_teardown_flunked
|
@@ -148,7 +152,10 @@ class TestMinitestUnit < MetaMetaMetaTestCase
|
|
148
152
|
|
149
153
|
test = test_class.new :test_omg
|
150
154
|
test.run
|
151
|
-
|
155
|
+
|
156
|
+
refute_predicate test, :error?
|
157
|
+
refute_predicate test, :passed?
|
158
|
+
refute_predicate test, :skipped?
|
152
159
|
end
|
153
160
|
|
154
161
|
def util_expand_bt bt
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.11.
|
4
|
+
version: 5.11.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
|
30
30
|
V+HB+LYYhXWitInO/eXxDrFB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2018-01-
|
32
|
+
date: 2018-01-26 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rdoc
|
metadata.gz.sig
CHANGED
Binary file
|