From 6baef911b89d0faa55825569422965a5a2e6039b Mon Sep 17 00:00:00 2001 From: "Erik S. Chang" Date: Fri, 20 Nov 2009 02:41:16 +0000 Subject: [PATCH] 1.8.7 compatibility git-svn-id: https://lwes.svn.sourceforge.net/svnroot/lwes/lwes-ruby/trunk@306 a2f82657-cdd2-4550-bd36-68a8e7111808 --- test/unit/test_struct.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/test_struct.rb b/test/unit/test_struct.rb index d2479c1..1976c19 100644 --- a/test/unit/test_struct.rb +++ b/test/unit/test_struct.rb @@ -68,7 +68,7 @@ class TestStruct < Test::Unit::TestCase class << self def get_type_db - TYPE_DB + const_get(:TYPE_DB) end end end @@ -76,6 +76,7 @@ class TestStruct < Test::Unit::TestCase assert y.respond_to?(:aaaaaaaa) assert_instance_of TrueClass, y.aaaaaaaa assert_equal a.const_get(:TYPE_DB).object_id, a.get_type_db.object_id + assert_equal EXPECT_DB, a.get_type_db end end -- 2.11.4.GIT