minitest 5.10.0 → 5.10.1
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 +3 -2
- data/test/minitest/test_minitest_test.rb +24 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 351bcef5cdca59a8a7698e72b0416aef86219192
|
4
|
+
data.tar.gz: 7710a72ed204d63809ae8f9dae5f0f88c0747dbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b72cb4785010a33c2865225f9e07bb586ead20c47da1c83d735734766c3029a18e85ea46b691489e0a7310bd36ffc6c67f16eec57c94128311cbb156919fde8
|
7
|
+
data.tar.gz: ce094ff893bfacd8afdff1b390c32799d95da6159f7e4f71c3d9665a5c0dbf629c36d23157e8940b779a51c18d9a0e50a832097c635b5bacfd9ee9d0879ad4ad
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/lib/minitest.rb
CHANGED
@@ -7,7 +7,7 @@ require "minitest/parallel"
|
|
7
7
|
# :include: README.rdoc
|
8
8
|
|
9
9
|
module Minitest
|
10
|
-
VERSION = "5.10.
|
10
|
+
VERSION = "5.10.1" # :nodoc:
|
11
11
|
ENCS = "".respond_to? :encoding # :nodoc:
|
12
12
|
|
13
13
|
@@installed_at_exit ||= false
|
@@ -664,7 +664,8 @@ module Minitest
|
|
664
664
|
|
665
665
|
def prerecord klass, name # :nodoc:
|
666
666
|
self.reporters.each do |reporter|
|
667
|
-
|
667
|
+
# TODO: remove conditional for minitest 6
|
668
|
+
reporter.prerecord klass, name if reporter.respond_to? :prerecord
|
668
669
|
end
|
669
670
|
end
|
670
671
|
|
@@ -1948,6 +1948,30 @@ class TestMinitestUnitRecording < MetaMetaMetaTestCase
|
|
1948
1948
|
assert_equal expected, recorded
|
1949
1949
|
end
|
1950
1950
|
|
1951
|
+
def test_run_with_bogus_reporter
|
1952
|
+
# https://github.com/seattlerb/minitest/issues/659
|
1953
|
+
# TODO: remove test for minitest 6
|
1954
|
+
@tu = Class.new FakeNamedTest do
|
1955
|
+
def test_method
|
1956
|
+
assert true
|
1957
|
+
end
|
1958
|
+
end
|
1959
|
+
|
1960
|
+
self.reporter = Minitest::CompositeReporter.new
|
1961
|
+
reporter << Class.new do
|
1962
|
+
def start; end
|
1963
|
+
# def prerecord klass, name; end
|
1964
|
+
def record result; end
|
1965
|
+
def report; end
|
1966
|
+
def passed?; end
|
1967
|
+
def results; end
|
1968
|
+
end.new
|
1969
|
+
|
1970
|
+
Minitest::Runnable.runnables.delete @tu
|
1971
|
+
|
1972
|
+
@tu.run reporter, {}
|
1973
|
+
end
|
1974
|
+
|
1951
1975
|
def test_record_passing
|
1952
1976
|
assert_run_record do
|
1953
1977
|
def test_method
|
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.10.
|
4
|
+
version: 5.10.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
E4oJcnPkJAr0rw504JGtlZtONZQblwmRJOIdXzolaE3NRGUzGVOUSptZppAKiavY
|
31
31
|
fO6tdKQc/5RfA8oQEkg8hrxA5PQSz4TOFJGLpFvIapEk6tMruQ0bHgkhr9auXg==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-12-
|
33
|
+
date: 2016-12-02 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rdoc
|
metadata.gz.sig
CHANGED
Binary file
|