

diff --git a/.gitignore b/.gitignore index f523f84..038b528 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /.shards/ *.dwarf *.pdf -*.o \ No newline at end of file +*.o +muse-dl-static* \ No newline at end of file diff --git a/spec/book_spec.cr b/spec/book_spec.cr index d16425b..622f209 100644 --- a/spec/book_spec.cr +++ b/spec/book_spec.cr @@ -72,4 +72,10 @@ describe Muse::Dl::Book do book.formats.should contain :pdf book.formats.should contain :html end + + it "should note both formats for book/57833" do + html = File.new("spec/fixtures/book-57833.html").gets_to_end + book = Muse::Dl::Book.new html + book.formats.should contain :pdf + end end diff --git a/spec/fixtures/book-57833.html b/spec/fixtures/book-57833.html new file mode 100644 index 0000000..15a4077 --- /dev/null +++ b/spec/fixtures/book-57833.html @@ -0,0 +1,1914 @@ + + +
+ + + + + + + + + + + + + + + + + + + + + +