test/test_reveal.rb in reveal-0.1.0 vs test/test_reveal.rb in reveal-0.2.0

- old
+ new

@@ -12,6 +12,18 @@ 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