Sha256: 161e56f3ad914254effaf24a4f191b86c8e0a7a6fa26958856e149b028728261

Contents?: true

Size: 477 Bytes

Versions: 1

Compression:

Stored size: 477 Bytes

Contents

require 'helper'

class TestReveal < Test::Unit::TestCase

  should "unzip gzipped file" do
  	file_path = File.expand_path("../fixtures/testzipfile.gz", __FILE__)
  	file = File.open(file_path)
    assert_equal "this is going to be\nall zipped up\n", Reveal.read(file)
  end

  should "read regular file" do
  	file_path = File.expand_path("../fixtures/plainfile", __FILE__)
  	file = File.open(file_path)
    assert_equal "this is\nboring text", Reveal.read(file)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
reveal-0.1.0 test/test_reveal.rb