diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2020-02-06 08:47:20 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-06 08:47:20 +0300 |
| commit | fac86cbe08a065616286a8dcc38abbe61d7675df (patch) | |
| tree | 8c7d8e894532ac40b15b22b5192d7ba7a5a13263 /spec/image_spec.rb | |
| parent | 49013bdb8527887af5f867168dce3d0aa4956bae (diff) | |
resolves #155 add support for Font Awesome Solid 5.12.0 (PR #290)
Diffstat (limited to 'spec/image_spec.rb')
| -rw-r--r-- | spec/image_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/image_spec.rb b/spec/image_spec.rb index 505cb22..1153959 100644 --- a/spec/image_spec.rb +++ b/spec/image_spec.rb @@ -29,4 +29,11 @@ describe 'Asciidoctor::Epub3::Converter - Image' do expect(book).to have_item_with_href('imagez/square.png') expect(book).to have_item_with_href('imagez/wolpertinger.jpg') end + + it 'converts font-based icons to CSS' do + book, = to_epub 'icon/book.adoc' + chapter = book.item_by_href '_chapter.xhtml' + expect(chapter).not_to be_nil + expect(chapter.content).to include '.i-commenting::before { content: "\f4ad"; }' + end end |
