test/drawing/tc_title.rb in axlsx-2.1.0.pre vs test/drawing/tc_title.rb in axlsx-3.0.0.pre
- old
+ new
@@ -17,9 +17,14 @@
def test_initialization
assert(@title.text == "")
assert(@title.cell == nil)
end
+ def test_initialize_title_size
+ title = Axlsx::Title.new 'bob', 90
+ assert_equal "90", title.text_size
+ end
+
def test_text
assert_raise(ArgumentError, "text must be a string") { @title.text = 123 }
@title.cell = @row.cells.first
@title.text = "bob"
assert(@title.cell == nil, "setting title with text clears the cell")