diff options
| author | Stefan Daschek <[email protected]> | 2013-07-03 16:34:05 +0200 |
|---|---|---|
| committer | Stefan Daschek <[email protected]> | 2013-07-03 16:34:05 +0200 |
| commit | c26177a9ec5de20a5e3ecbac635e8ce209102645 (patch) | |
| tree | 1cd673570cc62c129f053e51e6c4a6d548c43e9b /test | |
| parent | 1d850b76d6b1fde01d934b301e38db421b391618 (diff) | |
| download | caxlsx-c26177a9ec5de20a5e3ecbac635e8ce209102645.tar.gz caxlsx-c26177a9ec5de20a5e3ecbac635e8ce209102645.zip | |
Fix incorrectly named test case
This test case was completely ignored when running the tests, because its name didn't start with "test_".
Some details in the test case needed to be fixed, too.
Diffstat (limited to 'test')
| -rw-r--r-- | test/workbook/worksheet/tc_comment.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/workbook/worksheet/tc_comment.rb b/test/workbook/worksheet/tc_comment.rb index eacce376..e57409ca 100644 --- a/test/workbook/worksheet/tc_comment.rb +++ b/test/workbook/worksheet/tc_comment.rb @@ -49,11 +49,11 @@ class TestComment < Test::Unit::TestCase assert(@c1.vml_shape.bottom_row == pos[1]+4) end - def to_xml_string + def test_to_xml_string doc = Nokogiri::XML(@c1.to_xml_string) assert_equal(doc.xpath("//comment[@ref='#{@c1.ref}']").size, 1) - assert_equal(doc.xpath("//comment[@authorId='#{@c1.author_index.to}']").size, 1) - assert_equal(doc.xpath("//t[text()='#{@c1.author}']").size, 1) + assert_equal(doc.xpath("//comment[@authorId='#{@c1.author_index.to_s}']").size, 1) + assert_equal(doc.xpath("//t[text()='#{@c1.author}:\n']").size, 1) assert_equal(doc.xpath("//t[text()='#{@c1.text}']").size, 1) end |
