diff options
| -rw-r--r-- | spec/theme_loader_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
