File: bzip2_support_test.rb

package info (click to toggle)
ruby-zip 2.3.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 1,192 kB
  • sloc: ruby: 8,386; makefile: 23
file content (11 lines) | stat: -rw-r--r-- 290 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
require 'test_helper'

class Bzip2SupportTest < MiniTest::Test
  BZIP2_ZIP_TEST_FILE = 'test/data/zipWithBzip2Compression.zip'

  def test_read
    Zip::InputStream.open(BZIP2_ZIP_TEST_FILE) do |zis|
      assert_raises(Zip::CompressionMethodError) { zis.get_next_entry }
    end
  end
end