Sha256: 0eefe178b438de54fa6eb5936801835130b51a16b9a065c7c8b81dc2f282b841
Contents?: true
Size: 409 Bytes
Versions: 18
Compression:
Stored size: 409 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../test_helper') require 'rbbt/util/tmpfile' require 'test/unit' class TestTmpFile < Test::Unit::TestCase def test_tmp_file assert(TmpFile.tmp_file("test") =~ /tmp\/test\d+$/) end def test_do_tmp_file content = "Hello World!" TmpFile.with_file(content) do |file| assert_equal content, File.open(file).read end end end
Version data entries
18 entries across 18 versions & 1 rubygems