Sha256: ddc01ac32b86c91d46f2f2493ab57f633560a1b40b5932b3889fd2c82e54bb8f

Contents?: true

Size: 308 Bytes

Versions: 4

Compression:

Stored size: 308 Bytes

Contents

covers 'facets/file/read_binary'

tests File do

  test_file = 'tmp/read_binary.txt'
  test_data = "line 1\nline 2\nline 3"

  # TODO: Is this even really testable?
  metaunit :read_binary do
    File.open(test_file, 'w'){ |f| f << test_data }
    File.read_binary(test_file).assert == test_data
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
facets-2.9.1 test/core/file/test_read_binary.rb
facets-2.9.0 test/core/file/test_read_binary.rb
facets-2.9.0.pre.2 test/core/file/test_read_binary.rb
facets-2.9.0.pre.1 test/core/file/test_read_binary.rb