diff options
Diffstat (limited to 'test/drawing/tc_title.rb')
| -rw-r--r-- | test/drawing/tc_title.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/drawing/tc_title.rb b/test/drawing/tc_title.rb index eb549b35..f26c307e 100644 --- a/test/drawing/tc_title.rb +++ b/test/drawing/tc_title.rb @@ -11,12 +11,11 @@ class TestTitle < Test::Unit::TestCase @chart = ws.add_chart Axlsx::Bar3DChart end - def teardown - end + def teardown; end def test_initialization assert(@title.text == "") - assert(@title.cell == nil) + assert(@title.cell.nil?) end def test_initialize_title_size @@ -28,7 +27,7 @@ class TestTitle < Test::Unit::TestCase 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") + assert(@title.cell.nil?, "setting title with text clears the cell") end def test_cell |
