diff options
| author | Jurriaan Pruis <[email protected]> | 2012-03-27 13:55:42 +0200 |
|---|---|---|
| committer | Jurriaan Pruis <[email protected]> | 2012-03-27 13:55:42 +0200 |
| commit | 3867eb132f20c3258f007ca61a738e90a09087dc (patch) | |
| tree | e8d0b196badf01ceefe56aa02ac40ad82371afce /test/drawing/tc_title.rb | |
| parent | 5afd30be1774fb5255dad2eb18c700d0d8f4a628 (diff) | |
| parent | be2d7bee9b9236fff4a378db8770c3ae793e8422 (diff) | |
| download | caxlsx-3867eb132f20c3258f007ca61a738e90a09087dc.tar.gz caxlsx-3867eb132f20c3258f007ca61a738e90a09087dc.zip | |
Merge github.com:randym/axlsx
Diffstat (limited to 'test/drawing/tc_title.rb')
| -rw-r--r-- | test/drawing/tc_title.rb | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/test/drawing/tc_title.rb b/test/drawing/tc_title.rb index 7fb6044b..e53c260a 100644 --- a/test/drawing/tc_title.rb +++ b/test/drawing/tc_title.rb @@ -1,8 +1,7 @@ -require 'test/unit' -require 'axlsx.rb' +require 'tc_helper.rb' class TestTitle < Test::Unit::TestCase - def setup + def setup @p = Axlsx::Package.new ws = @p.workbook.add_worksheet @row = ws.add_row ["one", 1, Time.now] @@ -21,7 +20,7 @@ class TestTitle < Test::Unit::TestCase def test_text assert_raise(ArgumentError, "text must be a string") { @title.text = 123 } @title.cell = @row.cells.first - @title.text = "bob" + @title.text = "bob" assert(@title.cell == nil, "setting title with text clears the cell") end @@ -30,5 +29,5 @@ class TestTitle < Test::Unit::TestCase @title.cell = @row.cells.first assert(@title.text == "one") end - + end |
