summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/font_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/font_spec.rb b/spec/font_spec.rb
index 23894b48..638172a1 100644
--- a/spec/font_spec.rb
+++ b/spec/font_spec.rb
@@ -161,14 +161,14 @@ describe 'Asciidoctor::PDF::Converter - Font' do
end
context 'OTF' do
- it 'should allow theme to specify an OTF font', visual: true do
+ it 'should allow theme to specify an OTF font', unless: (Gem::Version.new RUBY_VERSION) < (Gem::Version.new '2.7.0'), visual: true, &(proc do
to_file = to_pdf_file <<~'EOS', 'font-otf.pdf', enable_footer: true, attribute_overrides: { 'pdf-theme' => (fixture_file 'otf-theme.yml'), 'pdf-fontsdir' => fixtures_dir }
== OTF
You're looking at an OTF font!
EOS
(expect to_file).to visually_match 'font-otf.pdf'
- end
+ end)
end
context 'custom' do