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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48297af06eab4424d8838e3313b009557efd6d89
4
- data.tar.gz: 55fc554fbf6475f7d1f59e101b0deedc81c7dd54
3
+ metadata.gz: 351bcef5cdca59a8a7698e72b0416aef86219192
4
+ data.tar.gz: 7710a72ed204d63809ae8f9dae5f0f88c0747dbe
5
5
  SHA512:
6
- metadata.gz: 4a43c8e38da3dc9b26147b7e0242d7d95875b35c23be0965a8811bf16754cb58eab55ec763cfaa34c5f2a056c0defe9a4460b79005a36f48f73949d6fdf68081
7
- data.tar.gz: 0aefd1de07da46c5f4e90b43946f88c64740503ec003f27869804c0a380b071e06d9648a6b6c3c339d588a02e9ab26cac269092a0f7fb4783f7df5d6eaaff103
6
+ metadata.gz: 4b72cb4785010a33c2865225f9e07bb586ead20c47da1c83d735734766c3029a18e85ea46b691489e0a7310bd36ffc6c67f16eec57c94128311cbb156919fde8
7
+ data.tar.gz: ce094ff893bfacd8afdff1b390c32799d95da6159f7e4f71c3d9665a5c0dbf629c36d23157e8940b779a51c18d9a0e50a832097c635b5bacfd9ee9d0879ad4ad
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 5.10.1 / 2016-12-01
2
+
3
+ * 1 bug fix:
4
+
5
+ * Added a hack/kludge to deal with missing #prerecord on reporters that aren't properly subclassing AbstractReporter (I'm looking at you minitest-reporters)
6
+
1
7
  === 5.10.0 / 2016-11-30
2
8
 
3
9
  * 2 minor enhancements:
@@ -7,7 +7,7 @@ require "minitest/parallel"
7
7
  # :include: README.rdoc
8
8
 
9
9
  module Minitest
10
- VERSION = "5.10.0" # :nodoc:
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
- reporter.prerecord klass, name
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.0
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-01 00:00:00.000000000 Z
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