minitest 4.3.0 → 4.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +6 -0
- data/lib/minitest/unit.rb +1 -1
- data/test/minitest/test_minitest_spec.rb +20 -23
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/minitest/unit.rb
CHANGED
@@ -562,13 +562,28 @@ describe MiniTest::Spec, :subject do
|
|
562
562
|
end
|
563
563
|
end
|
564
564
|
|
565
|
-
class
|
566
|
-
|
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
|
-
|
569
|
-
|
570
|
-
|
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:
|
4
|
+
hash: 49
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 4.3.
|
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-
|
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
|