mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@4609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2e0b087b02
commit
11150ba747
3 changed files with 41 additions and 1 deletions
|
@ -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__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue