From eee6cedc0d7ea0c9c344441c78af9a155d39fdb8 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Wed, 6 Mar 2024 01:22:58 -0700 Subject: [PATCH] deactivate OTF test if Ruby version is < 2.7 --- spec/font_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/font_spec.rb b/spec/font_spec.rb index 23894b48a..638172a12 100644 --- a/spec/font_spec.rb +++ b/spec/font_spec.rb @@ -161,14 +161,14 @@ 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