Sha256: 2b492f28675f1d0018875db0003f1d89b36d48e094884bf17a3096341efe4ce4
Contents?: true
Size: 734 Bytes
Versions: 1
Compression:
Stored size: 734 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/file/self/create.rb # # Extracted Tue Jul 25 10:07:15 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/file/self/create.rb' require 'test/unit' # mock file class File def self.open( fname, mode, &blk ) blk.call( self ) end def self.read( fname ) @mock_content end def self.<<( str ) (@mock_content ||="") << str end end class TC_CREATE < Test::Unit::TestCase def test_create f = "not a reasl file" t = 'This is a test' File.create( f, t ) s = File.read( f ) assert_equal( t, s ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-1.7.0 | test/lib/facets/core/file/self/test_create.rb |