summaryrefslogtreecommitdiff
path: root/spec/audio_spec.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-05-12 23:57:22 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-05-12 23:57:22 -0600
commit4c6872d13f52755e37bcac1d4cf76ba765aac235 (patch)
tree9ca8c9a887ec7caf57611a4e1e76a1c61c57d47f /spec/audio_spec.rb
parenta226713a428cc354a2749b78fab95d17cea9ff83 (diff)
verify caption is shown below audio if title is specified
Diffstat (limited to 'spec/audio_spec.rb')
-rw-r--r--spec/audio_spec.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/audio_spec.rb b/spec/audio_spec.rb
index 085221ba..cbe11847 100644
--- a/spec/audio_spec.rb
+++ b/spec/audio_spec.rb
@@ -34,4 +34,15 @@ describe 'Asciidoctor::PDF::Converter - Audio' do
(expect icon_text).not_to be_nil
(expect icon_text[:font_name]).to eql 'FontAwesome5Free-Solid'
end
+
+ it 'should show caption for audio if title is specified' do
+ pdf = to_pdf <<~'EOS', analyze: true
+ :icons: font
+
+ .Episode 1 of my podcast
+ audio::podcast-e1.mp3[]
+ EOS
+
+ (expect pdf.lines).to eql [%(\uf04b\u00a0#{fixture_file 'podcast-e1.mp3'} (audio)), 'Episode 1 of my podcast']
+ end
end