From c26177a9ec5de20a5e3ecbac635e8ce209102645 Mon Sep 17 00:00:00 2001 From: Stefan Daschek Date: Wed, 3 Jul 2013 16:34:05 +0200 Subject: 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. --- test/workbook/worksheet/tc_comment.rb | 6 +++--- 1 file 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 -- cgit v1.2.3