You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
describe'add_item'doit'adds item with media type'dobook=GEPUB::Book.newbook.add_item'chap3.xml',content: nil,media_type: 'application/docbook+xml'expect(book.items.size).toeq1endend
Expected: test passes
Actual:
NoMethodError:
undefined method `add_media_type' for #<GEPUB::Item:0x0000000006d80a58>
# ./lib/gepub/book.rb:474:in `block in add_item_internal'
# ./lib/gepub/book.rb:467:in `each'
# ./lib/gepub/book.rb:467:in `add_item_internal'
# ./lib/gepub/book_add_item.rb:9:in `add_item'
# ./spec/book_spec.rb:277:in `block (4 levels) in <top (required)>'
The text was updated successfully, but these errors were encountered:
slonopotamus
changed the title
Book.add_item fails with exception if media_type or media_overlay argument is passed
Book.add_item fails with exception if media_type or media_overlay is passed
Feb 15, 2020
Test case:
Expected: test passes
Actual:
Same bug happens with
Book.add_ordered_item
.Workaround:
The text was updated successfully, but these errors were encountered: