minitest 5.0.0 → 5.0.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 +7 -0
- data/lib/minitest.rb +9 -3
- data/lib/minitest/assertions.rb +6 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/minitest.rb
CHANGED
@@ -4,7 +4,7 @@ require "optparse"
|
|
4
4
|
# :include: README.txt
|
5
5
|
|
6
6
|
module Minitest
|
7
|
-
VERSION = "5.0.
|
7
|
+
VERSION = "5.0.1" # :nodoc:
|
8
8
|
|
9
9
|
@@installed_at_exit ||= false
|
10
10
|
@@after_run = []
|
@@ -68,9 +68,15 @@ module Minitest
|
|
68
68
|
def self.load_plugins # :nodoc:
|
69
69
|
return unless self.extensions.empty?
|
70
70
|
|
71
|
-
|
72
|
-
|
71
|
+
seen = {}
|
72
|
+
|
73
|
+
Gem.find_files("minitest/*_plugin.rb").reverse.each do |plugin_path|
|
73
74
|
name = File.basename plugin_path, "_plugin.rb"
|
75
|
+
|
76
|
+
next if seen[name]
|
77
|
+
seen[name] = true
|
78
|
+
|
79
|
+
require plugin_path
|
74
80
|
self.extensions << name
|
75
81
|
end
|
76
82
|
end
|
data/lib/minitest/assertions.rb
CHANGED
@@ -4,6 +4,12 @@ module Minitest
|
|
4
4
|
##
|
5
5
|
# Minitest Assertions. All assertion methods accept a +msg+ which is
|
6
6
|
# printed if the assertion fails.
|
7
|
+
#
|
8
|
+
# Protocol: Nearly everything here boils up to +assert+, which
|
9
|
+
# expects to be able to increment an instance variable named
|
10
|
+
# +assertions+. This is not provided by Assertions and must be
|
11
|
+
# provided by the thing including Assertions. See Minitest::Runnable
|
12
|
+
# for an example.
|
7
13
|
|
8
14
|
module Assertions
|
9
15
|
UNDEFINED = Object.new # :nodoc:
|
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: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 5
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 5.0.
|
9
|
+
- 1
|
10
|
+
version: 5.0.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: 2013-05-
|
39
|
+
date: 2013-05-15 00:00:00 Z
|
40
40
|
dependencies:
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rdoc
|
metadata.gz.sig
CHANGED
Binary file
|