minitest 5.11.0b1 → 5.11.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: 4d31a9fcb7d45a7e535a4fbc93165ba08405b925
4
- data.tar.gz: 3b62db8a5bfa1b7d232bd76d3254510c3d839c4c
3
+ metadata.gz: 4532535af505aea7a24c6a12ed614dc4daac90f7
4
+ data.tar.gz: f046da3055edc520f92fd89a7337d14073068100
5
5
  SHA512:
6
- metadata.gz: ad77547e5e3721e327d6bb96c664cce839acef498c0f059df1fd36211d35644ec040e75212c8a421430ee05adb7d5525b3aefc54e480f3cb33afb6004917077f
7
- data.tar.gz: f153926171b7040a9626f029747202678e32798c2572e18bcf4f9cab5ce10e80faa074ccc3f460c56ba2027c35af0b541440e9e8a8dfce740af47211646bd2db
6
+ metadata.gz: fa14c057616423821c8e5afeaf80068fdb63f0e596c85dae9dbe64c307269c08e10a126db0807eb2a0077ed9b2886ceae264aeb4beb213fa6efbaed25ea69312
7
+ data.tar.gz: f810e3d8ffab481cf3fe9720735eaf44a099b824a591fc510bde5c204ad27242bf784850cef9b2cf5f9d4f879ffa40834a243d1eb1cb04d5a9a3091b2c50402f
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,32 @@
1
+ === 5.11.1 / 2018-01-02
2
+
3
+ * 1 bug fix:
4
+
5
+ * Fixed Result (a superclass of Test) overriding Runnable's name accessors. (y-yagi, MSP-Greg)
6
+
7
+ === 5.11.0 / 2018-01-01
8
+
9
+ * 2 major enhancements:
10
+
11
+ * Added Minitest::Result and Minitest::Result.from(runnable).
12
+ * Changed Minitest::Test to subclass Result and refactored methods up.
13
+
14
+ * 7 minor enhancements:
15
+
16
+ * Added --no-plugins and MT_NO_PLUGINS to bypass MT plugin autoloading. Helps with bad actors installed globally.
17
+ * Added bench_performance_{logarithmic,power} for spec-style benchmarks. (rickhull)
18
+ * Added deprecation warning for Runnable#marshal_dump.
19
+ * Minitest.run_one_method now checks for instance of Result, not exact same class.
20
+ * Minitest::Test.run returns a Result version of self, not self.
21
+ * ProgressReporter#prerecord now explicitly prints klass.name. Allows for fakers.
22
+
23
+ * 4 bug fixes:
24
+
25
+ * Object.stub no longer calls the passed block if stubbed with a callable.
26
+ * Object.stub now passes blocks down to the callable result.
27
+ * Pushed Minitest::Test#time & #time_it up to Runnable.
28
+ * Test nil equality directly in assert_equal. Fixes #679. (voxik)
29
+
1
30
  === 5.11.0b1 / 2017-12-20
2
31
 
3
32
  * 2 major enhancements:
@@ -8,7 +8,7 @@ require "stringio"
8
8
  # :include: README.rdoc
9
9
 
10
10
  module Minitest
11
- VERSION = "5.11.0b1" # :nodoc:
11
+ VERSION = "5.11.1" # :nodoc:
12
12
  ENCS = "".respond_to? :encoding # :nodoc:
13
13
 
14
14
  @@installed_at_exit ||= false
@@ -377,6 +377,22 @@ module Minitest
377
377
  @@runnables
378
378
  end
379
379
 
380
+ @@marshal_dump_warned = false
381
+
382
+ def marshal_dump # :nodoc:
383
+ unless @@marshal_dump_warned then
384
+ warn ["Minitest::Test#marshal_dump is deprecated.",
385
+ "You might be violating internals. From", caller.first].join " "
386
+ @@marshal_dump_warned = true
387
+ end
388
+
389
+ [self.name, self.failures, self.assertions, self.time]
390
+ end
391
+
392
+ def marshal_load ary # :nodoc:
393
+ self.name, self.failures, self.assertions, self.time = ary
394
+ end
395
+
380
396
  def failure # :nodoc:
381
397
  self.failures.first
382
398
  end
@@ -428,16 +444,14 @@ module Minitest
428
444
  # that the test result can be marshalled.
429
445
 
430
446
  class Result < Runnable
447
+ undef_method :marshal_dump
448
+ undef_method :marshal_load
449
+
431
450
  ##
432
451
  # The class name of the test result.
433
452
 
434
453
  attr_accessor :klass
435
454
 
436
- ##
437
- # The test name of the test result.
438
-
439
- attr_accessor :name
440
-
441
455
  ##
442
456
  # The location of the test method.
443
457
 
@@ -778,7 +778,7 @@ class TestMinitestRunnable < Minitest::Test
778
778
  def test_marshal
779
779
  setup_marshal Minitest::Runnable
780
780
 
781
- assert_marshal %w[@assertions @failures @klass @name @source_location @time]
781
+ assert_marshal %w[@NAME @assertions @failures @klass @source_location @time]
782
782
  end
783
783
 
784
784
  def test_spec_marshal
@@ -807,7 +807,7 @@ class TestMinitestTest < TestMinitestRunnable
807
807
  tc.time = 3.14
808
808
  end
809
809
 
810
- assert_marshal %w[@assertions @failures @klass @name @source_location @time] do |new_tc|
810
+ assert_marshal %w[@NAME @assertions @failures @klass @source_location @time] do |new_tc|
811
811
  assert_in_epsilon 3.14, new_tc.time
812
812
  end
813
813
  end
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.0b1
4
+ version: 5.11.1
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: 2017-12-21 00:00:00.000000000 Z
32
+ date: 2018-01-02 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: rdoc
@@ -165,9 +165,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
165
165
  version: '0'
166
166
  required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  requirements:
168
- - - ">"
168
+ - - ">="
169
169
  - !ruby/object:Gem::Version
170
- version: 1.3.1
170
+ version: '0'
171
171
  requirements: []
172
172
  rubyforge_project:
173
173
  rubygems_version: 2.6.13
metadata.gz.sig CHANGED
Binary file