Skip to content

Commit

Permalink
deactivate OTF test if Ruby version is < 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Mar 6, 2024
1 parent a10537d commit eee6ced
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/font_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eee6ced

Please sign in to comment.