mirror of
https://github.com/captn3m0/muse-dl.git
synced 2024-09-28 13:22:52 +00:00
13 lines
361 B
Crystal
13 lines
361 B
Crystal
require "./spec_helper"
|
|
# require "errors/muse_corrupt_pdf.cr"
|
|
|
|
describe Muse::Dl::Book do
|
|
it "should notice the unable to construct chapter PDF error" do
|
|
f = "/tmp/chapter-2379787.pdf"
|
|
File.delete(f) if File.exists? f
|
|
expect_raises Muse::Dl::Errors::MuseCorruptPDF do
|
|
Muse::Dl::Fetch.save_chapter("/tmp", "2379787", "NA")
|
|
end
|
|
end
|
|
end
|