File: decompressor_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 (15 lines) | stat: -rw-r--r-- 460 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'test_helper'
class DecompressorTest < MiniTest::Test
  TEST_COMPRESSION_METHOD = 255

  class TestCompressionClass
  end

  def test_decompressor_registration
    assert_nil(::Zip::Decompressor.find_by_compression_method(TEST_COMPRESSION_METHOD))

    ::Zip::Decompressor.register(TEST_COMPRESSION_METHOD, TestCompressionClass)

    assert_equal(TestCompressionClass, ::Zip::Decompressor.find_by_compression_method(TEST_COMPRESSION_METHOD))
  end
end