minitest 4.3.0 → 4.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 4.3.1 / 2012-11-23
2
+
3
+ * 1 bug fix:
4
+
5
+ * Moved test_children to serial testcase to prevent random failures.
6
+
1
7
  === 4.3.0 / 2012-11-17
2
8
 
3
9
  * 4 minor enhancements:
@@ -729,7 +729,7 @@ module MiniTest
729
729
  end
730
730
 
731
731
  class Unit # :nodoc:
732
- VERSION = "4.3.0" # :nodoc:
732
+ VERSION = "4.3.1" # :nodoc:
733
733
 
734
734
  attr_accessor :report, :failures, :errors, :skips # :nodoc:
735
735
  attr_accessor :test_count, :assertion_count # :nodoc:
@@ -562,13 +562,28 @@ describe MiniTest::Spec, :subject do
562
562
  end
563
563
  end
564
564
 
565
- class TestMeta < MiniTest::Unit::TestCase
566
- parallelize_me!
565
+ class TestMetaStatic < MiniTest::Unit::TestCase
566
+ def test_children
567
+ MiniTest::Spec.children.clear # prevents parallel run
568
+
569
+ x = y = z = nil
570
+ x = describe "top-level thingy" do
571
+ y = describe "first thingy" do end
567
572
 
568
- def test_setup
569
- srand 42
570
- MiniTest::Unit::TestCase.reset
573
+ it "top-level-it" do end
574
+
575
+ z = describe "second thingy" do end
576
+ end
577
+
578
+ assert_equal [x], MiniTest::Spec.children
579
+ assert_equal [y, z], x.children
580
+ assert_equal [], y.children
581
+ assert_equal [], z.children
571
582
  end
583
+ end
584
+
585
+ class TestMeta < MiniTest::Unit::TestCase
586
+ parallelize_me!
572
587
 
573
588
  def util_structure
574
589
  x = y = z = nil
@@ -667,24 +682,6 @@ class TestMeta < MiniTest::Unit::TestCase
667
682
  assert_equal [3, 2, 1], after_list
668
683
  end
669
684
 
670
- def test_children
671
- MiniTest::Spec.children.clear
672
-
673
- x = y = z = nil
674
- x = describe "top-level thingy" do
675
- y = describe "first thingy" do end
676
-
677
- it "top-level-it" do end
678
-
679
- z = describe "second thingy" do end
680
- end
681
-
682
- assert_equal [x], MiniTest::Spec.children
683
- assert_equal [y, z], x.children
684
- assert_equal [], y.children
685
- assert_equal [], z.children
686
- end
687
-
688
685
  def test_describe_first_structure
689
686
  x = x1 = x2 = y = z = nil
690
687
  x = describe "top-level thingy" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
4
+ hash: 49
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
8
  - 3
9
- - 0
10
- version: 4.3.0
9
+ - 1
10
+ version: 4.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-11-17 00:00:00 Z
39
+ date: 2012-11-23 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
metadata.gz.sig CHANGED
Binary file