ZenTest 4.8.4 → 4.9.0
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 +10 -0
- data/lib/multiruby.rb +2 -1
- data/lib/zentest.rb +11 -13
- data/test/test_autotest.rb +1 -1
- data/test/test_zentest.rb +8 -6
- metadata +9 -9
- metadata.gz.sig +2 -2
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/lib/multiruby.rb
CHANGED
@@ -79,7 +79,6 @@ module Multiruby
|
|
79
79
|
|
80
80
|
build_dir = File.basename tarball, ".tar.gz"
|
81
81
|
version = build_dir.sub(/^ruby-?/, '')
|
82
|
-
versions << version
|
83
82
|
inst_dir = "#{root_dir}/install/#{version}"
|
84
83
|
|
85
84
|
unless test ?d, inst_dir then
|
@@ -115,6 +114,8 @@ module Multiruby
|
|
115
114
|
end
|
116
115
|
end
|
117
116
|
end
|
117
|
+
|
118
|
+
versions = Dir["install/*"].map { |path| File.basename path }
|
118
119
|
end
|
119
120
|
|
120
121
|
versions
|
data/lib/zentest.rb
CHANGED
@@ -4,8 +4,14 @@ if (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
|
|
4
4
|
end
|
5
5
|
|
6
6
|
$stdlib = {}
|
7
|
-
ObjectSpace.
|
8
|
-
|
7
|
+
if ObjectSpace.respond_to?(:loaded_classes, true) then
|
8
|
+
ObjectSpace.loaded_classes(true).each do |m|
|
9
|
+
$stdlib[m.name] = true if m.respond_to? :name
|
10
|
+
end
|
11
|
+
else
|
12
|
+
ObjectSpace.each_object(Module) do |m|
|
13
|
+
$stdlib[m.name] = true if m.respond_to? :name
|
14
|
+
end
|
9
15
|
end
|
10
16
|
|
11
17
|
require 'zentest_mapping'
|
@@ -58,7 +64,7 @@ end
|
|
58
64
|
|
59
65
|
class ZenTest
|
60
66
|
|
61
|
-
VERSION = '4.
|
67
|
+
VERSION = '4.9.0'
|
62
68
|
|
63
69
|
include ZenTestMapping
|
64
70
|
|
@@ -96,21 +102,13 @@ class ZenTest
|
|
96
102
|
end
|
97
103
|
end
|
98
104
|
|
99
|
-
# obtain the class klassname
|
100
|
-
# using ObjectSpace to search for it.
|
105
|
+
# obtain the class klassname
|
101
106
|
def get_class(klassname)
|
107
|
+
klass = nil
|
102
108
|
begin
|
103
109
|
klass = klassname.split(/::/).inject(Object) { |k,n| k.const_get n }
|
104
110
|
puts "# found class #{klass.name}" if $DEBUG
|
105
111
|
rescue NameError
|
106
|
-
ObjectSpace.each_object(Class) do |cls|
|
107
|
-
if cls.name =~ /(^|::)#{klassname}$/ then
|
108
|
-
klass = cls
|
109
|
-
klassname = cls.name
|
110
|
-
break
|
111
|
-
end
|
112
|
-
end
|
113
|
-
puts "# searched and found #{klass.name}" if klass and $DEBUG
|
114
112
|
end
|
115
113
|
|
116
114
|
if klass.nil? and not $TESTING then
|
data/test/test_autotest.rb
CHANGED
@@ -34,7 +34,7 @@ class TestAutotest < MiniTest::Unit::TestCase
|
|
34
34
|
|
35
35
|
alias :deny :refute
|
36
36
|
|
37
|
-
RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
37
|
+
RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
|
38
38
|
|
39
39
|
def setup
|
40
40
|
@test_class = 'TestBlah'
|
data/test/test_zentest.rb
CHANGED
@@ -33,9 +33,9 @@ class SuperDuper # ZenTest SKIP
|
|
33
33
|
end
|
34
34
|
|
35
35
|
class LowlyOne < SuperDuper # ZenTest SKIP
|
36
|
-
def self.
|
36
|
+
def self.cls_xtended; end
|
37
37
|
def overridden; end
|
38
|
-
def
|
38
|
+
def xtended; end # renamed because maglev defines it globally :/
|
39
39
|
def pretty_print; end
|
40
40
|
def pretty_print_cycle; end
|
41
41
|
end
|
@@ -408,9 +408,9 @@ end
|
|
408
408
|
|
409
409
|
def test_get_methods_for_subclass
|
410
410
|
expect = {
|
411
|
-
"self.
|
411
|
+
"self.cls_xtended" => true,
|
412
412
|
"overridden" => true,
|
413
|
-
"
|
413
|
+
"xtended" => true
|
414
414
|
}
|
415
415
|
result = @tester.get_methods_for("LowlyOne")
|
416
416
|
|
@@ -420,9 +420,9 @@ end
|
|
420
420
|
def test_get_methods_for_subclass_full
|
421
421
|
expect = {
|
422
422
|
"self.cls_inherited" => true,
|
423
|
-
"self.
|
423
|
+
"self.cls_xtended" => true,
|
424
424
|
"overridden" => true,
|
425
|
-
"
|
425
|
+
"xtended" => true
|
426
426
|
}
|
427
427
|
result = @tester.get_methods_for("LowlyOne", true)
|
428
428
|
|
@@ -556,6 +556,8 @@ assert_equal expected, util_testcase("Something2::Blah2", "TestSomething2::TestB
|
|
556
556
|
end
|
557
557
|
|
558
558
|
def test_testcase9
|
559
|
+
skip "doesn't define to_s on TrueClass?!?" if maglev?
|
560
|
+
|
559
561
|
# stupid YAML is breaking my tests. Enters via Test::Rails. order dependent.
|
560
562
|
if defined? YAML then
|
561
563
|
TrueClass.send :remove_method, :taguri, :taguri=, :to_yaml rescue nil
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZenTest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 4.
|
8
|
+
- 9
|
9
|
+
- 0
|
10
|
+
version: 4.9.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -37,7 +37,7 @@ cert_chain:
|
|
37
37
|
FBHgymkyj/AOSqKRIpXPhjC6
|
38
38
|
-----END CERTIFICATE-----
|
39
39
|
|
40
|
-
date: 2013-
|
40
|
+
date: 2013-02-07 00:00:00 Z
|
41
41
|
dependencies:
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: minitest
|
@@ -47,11 +47,11 @@ dependencies:
|
|
47
47
|
requirements:
|
48
48
|
- - ~>
|
49
49
|
- !ruby/object:Gem::Version
|
50
|
-
hash:
|
50
|
+
hash: 17
|
51
51
|
segments:
|
52
52
|
- 4
|
53
|
-
-
|
54
|
-
version: "4.
|
53
|
+
- 5
|
54
|
+
version: "4.5"
|
55
55
|
type: :development
|
56
56
|
version_requirements: *id001
|
57
57
|
- !ruby/object:Gem::Dependency
|
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
requirements: []
|
203
203
|
|
204
204
|
rubyforge_project: zentest
|
205
|
-
rubygems_version: 1.8.
|
205
|
+
rubygems_version: 1.8.25
|
206
206
|
signing_key:
|
207
207
|
specification_version: 3
|
208
208
|
summary: "ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby"
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
p
|
2
|
-
�
|
1
|
+
x������4�ʆ��CU��eG0�ך�����O�@A����+s̩$WL;�p�ɺ��)���;���V2C���{ �����`�T��jK��5�����=U�y)i:�pȗgѨ������DN2���wc#d/c��&k
|
2
|
+
I��4y�/5�=�� ��MC2��7L�T_���[xm@I7���ʳ�U�Z�бQ�i&1~n��ڽ
|