forked from IronLanguages/main
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
215 additions
and
79 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
Merlin/External/Languages/IronRuby/mspec/ironruby-tags/library/zlib/gzipfile/close_tags.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
Merlin/External/Languages/IronRuby/mspec/ironruby-tags/library/zlib/gzipfile/closed_tags.txt
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...in/External/Languages/IronRuby/mspec/ironruby-tags/library/zlib/gzipfile/comment_tags.txt
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
.../External/Languages/IronRuby/mspec/ironruby-tags/library/zlib/gzipfile/orig_name_tags.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
Merlin/External/Languages/IronRuby/mspec/rubyspec/library/zlib/gzipfile/finish_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,29 @@ | ||
require File.dirname(__FILE__) + '/../../../spec_helper' | ||
require 'stringio' | ||
require 'zlib' | ||
|
||
describe 'Zlib::GzipFile#finish' do | ||
before(:each) do | ||
@io = StringIO.new | ||
@gzip_writer = Zlib::GzipWriter.new @io | ||
end | ||
|
||
it 'closes the GzipFile' do | ||
@gzip_writer.finish | ||
@gzip_writer.closed?.should be_true | ||
end | ||
|
||
it 'does not close the IO object' do | ||
@gzip_writer.finish | ||
@io.closed?.should be_false | ||
end | ||
|
||
it 'returns the associated IO object' do | ||
@gzip_writer.finish.should eql(@io) | ||
end | ||
|
||
it 'raises Zlib::GzipFile::Error if called multiple times' do | ||
@gzip_writer.finish | ||
lambda { @gzip_writer.finish }.should raise_error(Zlib::GzipFile::Error) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.