diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2024-03-06 01:22:58 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2024-03-06 01:22:58 -0700 |
| commit | eee6cedc0d7ea0c9c344441c78af9a155d39fdb8 (patch) | |
| tree | 2f28745de869ba93a5f13a05901f6d947b590c83 | |
| parent | a10537d7d9f6bd1a72b5a0bc3e541e72de3751e4 (diff) | |
deactivate OTF test if Ruby version is < 2.7
| -rw-r--r-- | spec/font_spec.rb | 4 |
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 |
