aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--test/net/http/test_http.rb6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 92d195678b..390a7a99d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index c8792114b4..b9076056b4 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -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