Class: ErrorsTest

Inherits:
MiniTest::Test
  • Object
show all
Defined in:
lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb

Instance Method Summary collapse

Instance Method Details

#test_rescue_legacy_zip_compression_method_errorObject



21
22
23
24
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 21

def test_rescue_legacy_zip_compression_method_error
  raise ::Zip::CompressionMethodError
rescue ::Zip::ZipCompressionMethodError
end

#test_rescue_legacy_zip_destination_file_exists_errorObject



16
17
18
19
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 16

def test_rescue_legacy_zip_destination_file_exists_error
  raise ::Zip::DestinationFileExistsError
rescue ::Zip::ZipDestinationFileExistsError
end

#test_rescue_legacy_zip_entry_exists_errorObject



11
12
13
14
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 11

def test_rescue_legacy_zip_entry_exists_error
  raise ::Zip::EntryExistsError
rescue ::Zip::ZipEntryExistsError
end

#test_rescue_legacy_zip_entry_name_errorObject



26
27
28
29
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 26

def test_rescue_legacy_zip_entry_name_error
  raise ::Zip::EntryNameError
rescue ::Zip::ZipEntryNameError
end

#test_rescue_legacy_zip_errorObject



6
7
8
9
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 6

def test_rescue_legacy_zip_error
  raise ::Zip::Error
rescue ::Zip::ZipError
end

#test_rescue_legacy_zip_internal_errorObject



31
32
33
34
# File 'lib/hotplate/gems/rubyzip-1.1.7/test/errors_test.rb', line 31

def test_rescue_legacy_zip_internal_error
  raise ::Zip::InternalError
rescue ::Zip::ZipInternalError
end