summaryrefslogtreecommitdiffstats
path: root/test/testunit/collector/test_objectspace.rb
diff options
context:
space:
mode:
authorntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-20 23:29:49 +0000
committerntalbott <ntalbott@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-03-20 23:29:49 +0000
commit1ab0a73c6bb59054d549d8b1268aa72ae6bcd712 (patch)
tree076ffdef0450c26b567ee5c4c3d8ef9f8db44ada /test/testunit/collector/test_objectspace.rb
parenta08fc81d1855d54b57d2ef35eb590196262bf81c (diff)
downloadruby-1ab0a73c6bb59054d549d8b1268aa72ae6bcd712.tar.gz
ruby-1ab0a73c6bb59054d549d8b1268aa72ae6bcd712.tar.xz
ruby-1ab0a73c6bb59054d549d8b1268aa72ae6bcd712.zip
* test/testunit/collector/test_dir.rb: Fixed test/unit tests that
were breaking due to Module#public_instance_methods now returning a Symbol instead of a String. * test/testunit/collector/test_objectspace.rb: Ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12114 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit/collector/test_objectspace.rb')
-rw-r--r--test/testunit/collector/test_objectspace.rb16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/testunit/collector/test_objectspace.rb b/test/testunit/collector/test_objectspace.rb
index a1532ff3e..841d35452 100644
--- a/test/testunit/collector/test_objectspace.rb
+++ b/test/testunit/collector/test_objectspace.rb
@@ -43,8 +43,8 @@ module Test
def full_suite(name=ObjectSpace::NAME)
expected = TestSuite.new(name)
- expected << (TestSuite.new(@tc1.name) << @tc1.new('test_1') << @tc1.new('test_2'))
- expected << (TestSuite.new(@tc2.name) << @tc2.new('test_0'))
+ expected << (TestSuite.new(@tc1.name) << @tc1.new(:test_1) << @tc1.new(:test_2))
+ expected << (TestSuite.new(@tc2.name) << @tc2.new(:test_0))
end
def empty_suite
@@ -81,15 +81,15 @@ module Test
assert_equal(full_suite, @c.collect)
expected = TestSuite.new(ObjectSpace::NAME)
- expected << (TestSuite.new(@tc1.name) << @tc1.new('test_1'))
- expected << (TestSuite.new(@tc2.name) << @tc2.new('test_0'))
- @c.filter = proc{|test| ['test_1', 'test_0'].include?(test.method_name)}
+ expected << (TestSuite.new(@tc1.name) << @tc1.new(:test_1))
+ expected << (TestSuite.new(@tc2.name) << @tc2.new(:test_0))
+ @c.filter = proc{|test| [:test_1, :test_0].include?(test.method_name)}
assert_equal(expected, @c.collect)
expected = TestSuite.new(ObjectSpace::NAME)
- expected << (TestSuite.new(@tc1.name) << @tc1.new('test_1'))
- expected << (TestSuite.new(@tc2.name) << @tc2.new('test_0'))
- @c.filter = [proc{|t| t.method_name == 'test_1' ? true : nil}, proc{|t| t.method_name == 'test_0' ? true : nil}, proc{false}]
+ expected << (TestSuite.new(@tc1.name) << @tc1.new(:test_1))
+ expected << (TestSuite.new(@tc2.name) << @tc2.new(:test_0))
+ @c.filter = [proc{|t| t.method_name == :test_1 ? true : nil}, proc{|t| t.method_name == :test_0 ? true : nil}, proc{false}]
assert_equal(expected, @c.collect)
end
end