Sha256: 94ef9c2835a838a6e331045f8bb4bc3de88216db8db9c3149516987be38224d2
Contents?: true
Size: 927 Bytes
Versions: 1
Compression:
Stored size: 927 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 should "unzip gzipped string" do file_path = File.expand_path("../fixtures/testzipfile.gz", __FILE__) string = File.readlines(file_path).join assert_equal "this is going to be\nall zipped up\n", Reveal.read(string) end should "read regular string" do file_path = File.expand_path("../fixtures/plainfile", __FILE__) string = File.readlines(file_path).join assert_equal "this is\nboring text", Reveal.read(string) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reveal-0.2.0 | test/test_reveal.rb |