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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0d02b78e719c5f0e0d66c70ce7d14dec24cd6b9238927d8aa4c7140ef0a9c73f
4
- data.tar.gz: 558f87be0d0a767424bfaaef04bcebfa889ea946e46ab5e1ca0857a3016df2a3
3
+ metadata.gz: 2c82c1408c60d4743cf06566256146090f22ab11bc5f024cbf4026fd967d7eb6
4
+ data.tar.gz: 93e140e22554c00911e381fa0584c52add681e5adb34bc3e575ee79459d7df6e
5
5
  SHA512:
6
- metadata.gz: d5f6dace06643179027dad2514c33d546a00b18525237ea296570b5e575ff5144c39fef97f02dabba4ca778d0181d7e16718ca9aba58d33c6b2a489105a62263
7
- data.tar.gz: bfbbbbb1d3e72976e0a162524e0026b4342a4e3395a601f1931384b511f85885e9d148cc3c855db98df01f9477ab5808495e942b9ab5e11d8b7b1ccc091389db
6
+ metadata.gz: 3621855d2763f225b2b99061c9eed994040debd9b1b032ebb3318adc42413493458b5c47569b7305954fc7575e870ad97441ce8bec7ddadb92afdd126f1f4bda
7
+ data.tar.gz: 19e04c6feff4f3d0cda89fadf4bd3f28415301d8adb2e5650a064cb74df57d8ee9885175738ac967d7a839496ac1c0f1c690627e8a2ca83f71edd6b0edb5b811
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.11.3 / 2018-01-26
2
+
3
+ * 1 bug fix:
4
+
5
+ * Pushed #error? up to Reportable module. (composerinteralia)
6
+
1
7
  === 5.11.2 / 2018-01-25
2
8
 
3
9
  * 1 minor enhancement:
@@ -8,7 +8,7 @@ require "stringio"
8
8
  # :include: README.rdoc
9
9
 
10
10
  module Minitest
11
- VERSION = "5.11.2" # :nodoc:
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
- assert r.passed?
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
- refute r.passed?
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
- refute r.passed?
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
- assert test.passed?
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
- assert test.skipped?
140
- refute test.passed?
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
- refute test.passed?
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.2
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-25 00:00:00.000000000 Z
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