minitest 2.6.1 → 2.6.2
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 +0 -0
- data/History.txt +11 -0
- data/README.txt +1 -0
- data/lib/hoe/minitest.rb +1 -0
- data/lib/minitest/unit.rb +3 -3
- data/test/test_minitest_unit.rb +4 -4
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 2.6.2 / 2011-10-19
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Added link to vim bundle. (sunaku)
|
6
|
+
|
7
|
+
* 2 bug fixes:
|
8
|
+
|
9
|
+
* Force gem activation in hoe minitest plugin
|
10
|
+
* Support RUBY_VERSION='2.0.0' (nagachika)
|
11
|
+
|
1
12
|
=== 2.6.1 / 2011-09-27
|
2
13
|
|
3
14
|
* 2 bug fixes:
|
data/README.txt
CHANGED
data/lib/hoe/minitest.rb
CHANGED
data/lib/minitest/unit.rb
CHANGED
@@ -18,7 +18,7 @@ module MiniTest
|
|
18
18
|
|
19
19
|
class Skip < Assertion; end
|
20
20
|
|
21
|
-
file = if RUBY_VERSION
|
21
|
+
file = if RUBY_VERSION >= '1.9.0' then # bt's expanded, but __FILE__ isn't :(
|
22
22
|
File.expand_path __FILE__
|
23
23
|
elsif __FILE__ =~ /^[^\.]/ then # assume both relative
|
24
24
|
require 'pathname'
|
@@ -247,7 +247,7 @@ module MiniTest
|
|
247
247
|
end
|
248
248
|
|
249
249
|
##
|
250
|
-
# Fails unless +obj+ is an
|
250
|
+
# Fails unless +obj+ is an instance of +cls+.
|
251
251
|
|
252
252
|
def assert_instance_of cls, obj, msg = nil
|
253
253
|
msg = message(msg) {
|
@@ -645,7 +645,7 @@ module MiniTest
|
|
645
645
|
end
|
646
646
|
|
647
647
|
class Unit
|
648
|
-
VERSION = "2.6.
|
648
|
+
VERSION = "2.6.2" # :nodoc:
|
649
649
|
|
650
650
|
attr_accessor :report, :failures, :errors, :skips # :nodoc:
|
651
651
|
attr_accessor :test_count, :assertion_count # :nodoc:
|
data/test/test_minitest_unit.rb
CHANGED
@@ -581,7 +581,7 @@ Finished tests in 0.00
|
|
581
581
|
end
|
582
582
|
|
583
583
|
def util_expand_bt bt
|
584
|
-
if RUBY_VERSION
|
584
|
+
if RUBY_VERSION >= '1.9.0' then
|
585
585
|
bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
|
586
586
|
else
|
587
587
|
bt
|
@@ -991,7 +991,7 @@ FILE:LINE:in `test_assert_raises_triggered_different'
|
|
991
991
|
---------------"
|
992
992
|
|
993
993
|
actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
|
994
|
-
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION
|
994
|
+
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
|
995
995
|
|
996
996
|
assert_equal expected, actual
|
997
997
|
end
|
@@ -1012,7 +1012,7 @@ FILE:LINE:in `test_assert_raises_triggered_different_msg'
|
|
1012
1012
|
---------------"
|
1013
1013
|
|
1014
1014
|
actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
|
1015
|
-
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION
|
1015
|
+
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
|
1016
1016
|
|
1017
1017
|
assert_equal expected, actual
|
1018
1018
|
end
|
@@ -1056,7 +1056,7 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
|
|
1056
1056
|
---------------"
|
1057
1057
|
|
1058
1058
|
actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
|
1059
|
-
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION
|
1059
|
+
actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION >= '1.9.0'
|
1060
1060
|
|
1061
1061
|
assert_equal expected, actual
|
1062
1062
|
end
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 2.6.
|
9
|
+
- 2
|
10
|
+
version: 2.6.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: 2011-
|
39
|
+
date: 2011-10-19 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: hoe
|
metadata.gz.sig
CHANGED
Binary file
|