From abb7752abe5bd445eba89fc4e47c24fb11bbc8ae Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 9 Aug 2022 23:56:25 -0600 Subject: add test to verify theme value with relative units is preserved --- spec/theme_loader_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'spec') diff --git a/spec/theme_loader_spec.rb b/spec/theme_loader_spec.rb index 130fecd1..a4588fd9 100644 --- a/spec/theme_loader_spec.rb +++ b/spec/theme_loader_spec.rb @@ -1204,6 +1204,16 @@ describe Asciidoctor::PDF::ThemeLoader do (expect theme.footer_padding.to_f.round 2).to eql 36.0 end end + + it 'should preserve value with relative units' do + theme_data = YAML.safe_load <<~EOS + role: + big: + font-size: 1.2em + EOS + theme = subject.new.load theme_data + (expect theme.role_big_font_size).to eql '1.2em' + end end context 'interpolation' do -- cgit v1.2.3