blob: b885add485d0db6ba7c2e42d2849d244e738e1b2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
require_relative '../../../spec_helper'
require 'stringio'
require 'zlib'
describe "Zlib::GzipFile#closed?" do
it "returns the closed status" do
io = StringIO.new
Zlib::GzipWriter.wrap io do |gzio|
gzio.closed?.should == false
gzio.close
gzio.closed?.should == true
end
end
end
|