test/rbbt/util/test_tmpfile.rb in rbbt-util-3.2.1 vs test/rbbt/util/test_tmpfile.rb in rbbt-util-4.0.0
- old
+ new
@@ -6,10 +6,10 @@
def test_tmp_file
assert(TmpFile.tmp_file("test") =~ /tmp\/test\d+$/)
end
- def _test_do_tmp_file
+ def test_do_tmp_file
content = "Hello World!"
TmpFile.with_file(content) do |file|
assert_equal content, File.open(file).read
end
end