summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet
diff options
context:
space:
mode:
authorpjskennedy <[email protected]>2022-03-02 10:02:10 -0800
committerpjskennedy <[email protected]>2022-03-02 10:02:10 -0800
commit20e3f21964c60477e68d4d3731a11a1650ea5061 (patch)
treeadf20e15c84507815cdfeab2f0c49c2268fe3805 /test/stylesheet
parentf30f5e5844e9fd4e3e099fbe3bedf927a8f24966 (diff)
downloadcaxlsx-20e3f21964c60477e68d4d3731a11a1650ea5061.tar.gz
caxlsx-20e3f21964c60477e68d4d3731a11a1650ea5061.zip
Update references to use new class method
Diffstat (limited to 'test/stylesheet')
-rw-r--r--test/stylesheet/tc_styles.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb
index c46b6bdb..1c04abd7 100644
--- a/test/stylesheet/tc_styles.rb
+++ b/test/stylesheet/tc_styles.rb
@@ -136,12 +136,13 @@ class TestStyles < Test::Unit::TestCase
original = @styles.fonts.first
@styles.add_style :b => 1, :sz => 99
created = @styles.fonts.last
- original_attributes = original.instance_values
+ original_attributes = Axlsx.instance_values(original)
assert_equal(1, created.b)
assert_equal(99, created.sz)
copied = original_attributes.reject{ |key, value| %w(b sz).include? key }
+ instance_vals = Axlsx.instance_values(created)
copied.each do |key, value|
- assert_equal(created.instance_values[key], value)
+ assert_equal(instance_vals[key], value)
end
end