summaryrefslogtreecommitdiff
path: root/test/soap/marshal/test_digraph.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/soap/marshal/test_digraph.rb')
-rw-r--r--test/soap/marshal/test_digraph.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/soap/marshal/test_digraph.rb b/test/soap/marshal/test_digraph.rb
index c83238748a..d7f30654f8 100644
--- a/test/soap/marshal/test_digraph.rb
+++ b/test/soap/marshal/test_digraph.rb
@@ -36,7 +36,9 @@ class TestDigraph < Test::Unit::TestCase
f = File.open("digraph_marshalled_string.soap", "wb")
SOAP::Marshal.dump(@n1, f)
f.close
- str = File.read("digraph_marshalled_string.soap")
+ f = File.open("digraph_marshalled_string.soap")
+ str = f.read
+ f.close
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__)