summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-08-09 23:56:25 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-08-10 01:15:56 -0600
commitabb7752abe5bd445eba89fc4e47c24fb11bbc8ae (patch)
tree373cbe4a2863456e04c6daeb43ea581d1b9f0f8b /spec
parentddb5e3d815470d8260279b2c113789aa29a3cd10 (diff)
add test to verify theme value with relative units is preserved
Diffstat (limited to 'spec')
-rw-r--r--spec/theme_loader_spec.rb10
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