1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* test/net/http/test_http.rb: remove temporally files in ensure clause.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-11-19 07:37:22 +00:00
parent 6fde18fe1c
commit b0fe688676
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sat Nov 19 16:36:57 2011 Tanaka Akira <akr@fsij.org>
* test/net/http/test_http.rb: remove temporally files in ensure clause.
Sat Nov 19 08:18:41 2011 Tanaka Akira <akr@fsij.org>
* test/net/http/test_http.rb: remove temporally files.

View file

@ -360,7 +360,8 @@ __EOM__
_test_set_form_multipart(http, false, data, expected)
_test_set_form_multipart(http, true, data, expected)
}
file.close(true)
ensure
file.close! if file
end
def _test_set_form_urlencoded(http, data)
@ -421,7 +422,8 @@ __EOM__
res = http.request req
#assert_equal(expected, res.body)
}
file.close(true)
ensure
file.close! if file
end
end