summaryrefslogtreecommitdiffhomepage
path: root/test/stylesheet/tc_fill.rb
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2011-11-20 23:22:04 +0900
committerRandy Morgan <[email protected]>2011-11-20 23:22:04 +0900
commite53f04284618713b0a90b7a691425c380e829476 (patch)
tree801fea138160f9af426d62bf94ad5bf97123ece9 /test/stylesheet/tc_fill.rb
downloadcaxlsx-e53f04284618713b0a90b7a691425c380e829476.tar.gz
caxlsx-e53f04284618713b0a90b7a691425c380e829476.zip
first commit
Diffstat (limited to 'test/stylesheet/tc_fill.rb')
-rw-r--r--test/stylesheet/tc_fill.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/stylesheet/tc_fill.rb b/test/stylesheet/tc_fill.rb
new file mode 100644
index 00000000..090a395b
--- /dev/null
+++ b/test/stylesheet/tc_fill.rb
@@ -0,0 +1,19 @@
+require 'test/unit'
+require 'axlsx.rb'
+
+class TestFill < Test::Unit::TestCase
+
+ def setup
+ @item = Axlsx::Fill.new Axlsx::PatternFill.new
+ end
+
+ def teardown
+ end
+
+ def test_initialiation
+ assert(@item.fill_type.is_a?(Axlsx::PatternFill))
+ assert_raise(ArgumentError) { Axlsx::Fill.new }
+ assert_nothing_raised { Axlsx::Fill.new(Axlsx::GradientFill.new) }
+ end
+
+end