summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-02-21 08:20:28 +0900
committerRandy Morgan <[email protected]>2012-02-21 08:20:28 +0900
commit78f50d06d7ed41f57e87bd2eb7b304b642939306 (patch)
tree6cf466e718923262dda7b64b57b4a224fc1a676e /test/stylesheet
parent4e06bb2b6c824ccd6cff287666027619339ad21e (diff)
downloadcaxlsx-78f50d06d7ed41f57e87bd2eb7b304b642939306.tar.gz
caxlsx-78f50d06d7ed41f57e87bd2eb7b304b642939306.zip
specs for Jonathan Tron's applyBorder patch.
Diffstat (limited to 'test/stylesheet')
-rw-r--r--test/stylesheet/tc_styles.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/stylesheet/tc_styles.rb b/test/stylesheet/tc_styles.rb
index 15020608..df180b61 100644
--- a/test/stylesheet/tc_styles.rb
+++ b/test/stylesheet/tc_styles.rb
@@ -42,10 +42,14 @@ class TestStyles < Test::Unit::TestCase
assert(xf.alignment.is_a?(Axlsx::CellAlignment), "alignment was created")
assert_equal(xf.alignment.horizontal, :left, "horizontal alignment applied")
- assert_equal(xf.applyProtection, 1, "protection applied")
assert_equal(xf.protection.hidden, true, "hidden protection set")
assert_equal(xf.protection.locked, true, "cell locking set")
- assert_raise(ArgumentError, "should reject invalid borderId") { @styles.add_style :border => 2 }
+ assert_raise(ArgumentError, "should reject invalid borderId") { @styles.add_style :border => 2 }
+
+
+ assert_equal(xf.applyProtection, 1, "protection applied")
+ assert_equal(xf.applyBorder, true, "border applied")
+ assert_equal(xf.applyNumberFormat, true, "border applied")
end