Skip to content

Commit

Permalink
Add a missing test: ZipContainer::File#to_s.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Oct 19, 2018
1 parent 6d96008 commit dc10dc6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/read_file_test.rb
Expand Up @@ -86,6 +86,13 @@ def test_raw_mimetypes
refute_equal('application/epub+zip', compressed_mimetype[38..57])
end

# Check that summary information about a container is correct.
def test_to_s
ZipContainer::File.open(EXAMPLE) do |c|
assert_equal('test/data/example.container - application/epub+zip', c.to_s)
end
end

# Check reading files out of a container file and make sure we don't change
# it.
def test_read_files_from_container
Expand Down

0 comments on commit dc10dc6

Please sign in to comment.