diff options
| author | pjskennedy <[email protected]> | 2022-03-02 10:02:10 -0800 |
|---|---|---|
| committer | pjskennedy <[email protected]> | 2022-03-02 10:02:10 -0800 |
| commit | 20e3f21964c60477e68d4d3731a11a1650ea5061 (patch) | |
| tree | adf20e15c84507815cdfeab2f0c49c2268fe3805 /test/stylesheet | |
| parent | f30f5e5844e9fd4e3e099fbe3bedf927a8f24966 (diff) | |
| download | caxlsx-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.rb | 5 |
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 |
