From 4fdece3c4ef432a30feb1dfd7a42fe49eeedd6a7 Mon Sep 17 00:00:00 2001 From: nobu Date: Mon, 7 Dec 2009 05:11:10 +0000 Subject: * marshal.c (w_object): reverted r26007. [ruby-dev:39845] * test/test_delegate.rb (test_marshal): moved from test_marshal.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_marshal.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_marshal.rb b/test/ruby/test_marshal.rb index 71936ec14..69c11d668 100644 --- a/test/ruby/test_marshal.rb +++ b/test/ruby/test_marshal.rb @@ -323,11 +323,10 @@ class TestMarshal < Test::Unit::TestCase end end def test_marshal_dump - bug1744 = '[ruby-core:24211]' c = C5.new("bar") s = Marshal.dump(c) d = Marshal.load(s) - assert_equal("foo", d.instance_variable_get(:@foo), bug1744) - assert_equal("bar", d.instance_variable_get(:@x), bug1744) + assert_equal("foo", d.instance_variable_get(:@foo)) + assert_equal(false, d.instance_variable_defined?(:@x)) end end -- cgit