summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2024-03-06 01:22:58 -0700
committerDan Allen <dan.j.allen@gmail.com>2024-03-06 01:22:58 -0700
commiteee6cedc0d7ea0c9c344441c78af9a155d39fdb8 (patch)
tree2f28745de869ba93a5f13a05901f6d947b590c83
parenta10537d7d9f6bd1a72b5a0bc3e541e72de3751e4 (diff)
deactivate OTF test if Ruby version is < 2.7
-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