summaryrefslogtreecommitdiffstats
path: root/test/soap
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-26 20:00:03 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-26 20:00:03 +0000
commit5f4b705f43b69348ba842bc04b018c9c16fe58e6 (patch)
tree0528aa41142b0121d4a730a02cb67191f1298f5a /test/soap
parent157914e2c71fca0da2f8b83551be330167b6619f (diff)
downloadruby-5f4b705f43b69348ba842bc04b018c9c16fe58e6.tar.gz
ruby-5f4b705f43b69348ba842bc04b018c9c16fe58e6.tar.xz
ruby-5f4b705f43b69348ba842bc04b018c9c16fe58e6.zip
* test/ruby/test_file.rb: new file. only asserts unlink-before-close behaviour
now. * test/soap/marshal/test_digraph.rb: should close before unlink. unlink-before-close pattern is not needed here. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/soap')
-rw-r--r--test/soap/marshal/test_digraph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/soap/marshal/test_digraph.rb b/test/soap/marshal/test_digraph.rb
index 2e79589dc..c83238748 100644
--- a/test/soap/marshal/test_digraph.rb
+++ b/test/soap/marshal/test_digraph.rb
@@ -36,7 +36,7 @@ class TestDigraph < Test::Unit::TestCase
f = File.open("digraph_marshalled_string.soap", "wb")
SOAP::Marshal.dump(@n1, f)
f.close
- str = File.open("digraph_marshalled_string.soap").read
+ str = File.read("digraph_marshalled_string.soap")
newnode = SOAP::Marshal.unmarshal(str)
assert_equal(newnode.first.first.__id__, newnode.second.first.__id__)
assert_equal(newnode.first.first.first.first.__id__, newnode.second.first.second.first.__id__)