minitest 2.11.1 → 2.11.2
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 +13 -2
- data/lib/minitest/unit.rb +13 -5
- metadata +7 -7
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,9 +1,20 @@
|
|
1
|
+
=== 2.11.2 / 2012-02-14
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Display failures/errors on SIGINFO. (tenderlove)
|
6
|
+
|
7
|
+
* 1 bug fix:
|
8
|
+
|
9
|
+
* Fixed MiniTest::Unit.after_tests for Ruby 1.9.3. (ysbaddaden)
|
10
|
+
|
1
11
|
=== 2.11.1 / 2012-02-01
|
2
12
|
|
3
|
-
*
|
13
|
+
* 3 bug fixes:
|
4
14
|
|
5
|
-
* Improved description for --name argument (drd)
|
15
|
+
* Improved description for --name argument. (drd)
|
6
16
|
* Ensure Mock#expect's expected args is an Array. (mperham)
|
17
|
+
* Ensure Mock#verify verifies multiple expects of the same method. (chastell)
|
7
18
|
|
8
19
|
=== 2.11.0 / 2012-01-25
|
9
20
|
|
data/lib/minitest/unit.rb
CHANGED
@@ -643,7 +643,7 @@ module MiniTest
|
|
643
643
|
end
|
644
644
|
|
645
645
|
class Unit # :nodoc:
|
646
|
-
VERSION = "2.11.
|
646
|
+
VERSION = "2.11.2" # :nodoc:
|
647
647
|
|
648
648
|
attr_accessor :report, :failures, :errors, :skips # :nodoc:
|
649
649
|
attr_accessor :test_count, :assertion_count # :nodoc:
|
@@ -661,6 +661,7 @@ module MiniTest
|
|
661
661
|
|
662
662
|
@@installed_at_exit ||= false
|
663
663
|
@@out = $stdout
|
664
|
+
@@after_tests = []
|
664
665
|
|
665
666
|
##
|
666
667
|
# A simple hook allowing you to run a block of code after the
|
@@ -668,8 +669,8 @@ module MiniTest
|
|
668
669
|
#
|
669
670
|
# MiniTest::Unit.after_tests { p $debugging_info }
|
670
671
|
|
671
|
-
def self.after_tests
|
672
|
-
|
672
|
+
def self.after_tests &block
|
673
|
+
@@after_tests << block
|
673
674
|
end
|
674
675
|
|
675
676
|
##
|
@@ -685,7 +686,10 @@ module MiniTest
|
|
685
686
|
# to run (at_exit stacks).
|
686
687
|
exit_code = nil
|
687
688
|
|
688
|
-
at_exit {
|
689
|
+
at_exit {
|
690
|
+
@@after_tests.reverse_each(&:call)
|
691
|
+
exit false if exit_code && exit_code != 0
|
692
|
+
}
|
689
693
|
|
690
694
|
exit_code = MiniTest::Unit.new.run ARGV
|
691
695
|
} unless @@installed_at_exit
|
@@ -1023,8 +1027,12 @@ module MiniTest
|
|
1023
1027
|
|
1024
1028
|
def run runner
|
1025
1029
|
trap "INFO" do
|
1030
|
+
runner.report.each_with_index do |msg, i|
|
1031
|
+
warn "\n%3d) %s" % [i + 1, msg]
|
1032
|
+
end
|
1033
|
+
warn ''
|
1026
1034
|
time = runner.start_time ? Time.now - runner.start_time : 0
|
1027
|
-
warn "%s#%s %.2fs" % [self.class, self.__name__, time]
|
1035
|
+
warn "Current Test: %s#%s %.2fs" % [self.class, self.__name__, time]
|
1028
1036
|
runner.status $stderr
|
1029
1037
|
end if SUPPORTS_INFO_SIGNAL
|
1030
1038
|
|
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: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 11
|
9
|
-
-
|
10
|
-
version: 2.11.
|
9
|
+
- 2
|
10
|
+
version: 2.11.2
|
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-02-
|
39
|
+
date: 2012-02-15 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
@@ -61,11 +61,11 @@ dependencies:
|
|
61
61
|
requirements:
|
62
62
|
- - ~>
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
hash:
|
64
|
+
hash: 25
|
65
65
|
segments:
|
66
66
|
- 2
|
67
|
-
-
|
68
|
-
version: "2.
|
67
|
+
- 13
|
68
|
+
version: "2.13"
|
69
69
|
type: :development
|
70
70
|
version_requirements: *id002
|
71
71
|
description: |-
|
metadata.gz.sig
CHANGED
Binary file
|