summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorMarat Radchenko <marat@slonopotamus.org>2020-07-02 22:33:57 +0300
committerGitHub <noreply@github.com>2020-07-02 22:33:57 +0300
commit79ea7e7d8b1ca01b0d93fe307b0b1fd2b5aa22f0 (patch)
treec37f85285bfdf7d3b3560ce5e635bcde76c86818 /spec
parent3a8ee3603101f92ed111a2320eb0e60ba52cb21a (diff)
resolves #123 remove <b> from chapter subtitle (#345)
Diffstat (limited to 'spec')
-rw-r--r--spec/converter_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/converter_spec.rb b/spec/converter_spec.rb
index 306c3a3..69dd734 100644
--- a/spec/converter_spec.rb
+++ b/spec/converter_spec.rb
@@ -76,7 +76,7 @@ describe Asciidoctor::Epub3::Converter do
appendix = book.items[spine[1].idref]
expect(appendix).not_to be_nil
expect(appendix.href).to eq('appendix.xhtml')
- expect(appendix.content).to include('<b>Appendix</b> <b>A:</b> <b>Appendix</b>')
+ expect(appendix.content).to include('Appendix A: Appendix')
end
it 'supports section numbers' do
@@ -89,7 +89,7 @@ describe Asciidoctor::Epub3::Converter do
EOS
chapter = book.item_by_href '_chapter.xhtml'
expect(chapter).not_to be_nil
- expect(chapter.content).to include('<b>1.</b> <b>Chapter</b>')
+ expect(chapter.content).to include('1. Chapter')
end
it 'converts multi-part book' do