test/tc_read.rb in zip-container-0.8.0 vs test/tc_read.rb in zip-container-0.9.0

- old
+ new

@@ -44,29 +44,29 @@ refute(ZipContainer::Container.verify($file_null)) end # Check that the empty container file does verify. def test_verify_empty_container - assert_nothing_raised(ZipContainer::MalformedZipContainerError, Zip::ZipError) do + assert_nothing_raised(ZipContainer::MalformedContainerError, Zip::ZipError) do ZipContainer::Container.verify!($empty) end assert(ZipContainer::Container.verify($empty)) end # Check that the empty zip file does not verify. def test_verify_empty_zip - assert_raise(ZipContainer::MalformedZipContainerError) do + assert_raise(ZipContainer::MalformedContainerError) do ZipContainer::Container.verify!($empty_zip) end refute(ZipContainer::Container.verify($empty_zip)) end # Check that a compressed mimetype file is detected. def test_verify_compressed_mimetype - assert_raise(ZipContainer::MalformedZipContainerError) do + assert_raise(ZipContainer::MalformedContainerError) do ZipContainer::Container.verify!($compressed_mimetype) end refute(ZipContainer::Container.verify($compressed_mimetype)) end @@ -81,10 +81,10 @@ end # Check reading files out of a container file and make sure we don't change # it. def test_read_files_from_container - assert_nothing_raised(ZipContainer::MalformedZipContainerError, Zip::ZipError) do + assert_nothing_raised(ZipContainer::MalformedContainerError, Zip::ZipError) do ZipContainer::Container.open($example) do |c| assert(c.on_disk?) refute(c.in_memory?) assert(c.file.exists?("greeting.txt"))