test/test_23_note.rb in writeexcel-0.6.6 vs test/test_23_note.rb in writeexcel-0.6.7

- old
+ new

@@ -24,11 +24,11 @@ def teardown @workbook.close end def test_blank_author_name - data = @worksheet.comment_params(2, 0, 'Test') + data = @worksheet.__send__("comment_params", 2, 0, 'Test') row = data[0] col = data[1] author = data[4] encoding = data[5] visible = data[6] @@ -37,16 +37,16 @@ caption = sprintf(" \tstore_note") target = %w( 1C 00 0C 00 02 00 00 00 00 00 01 00 00 00 00 00 ).join(' ') result = unpack_record( - @worksheet.store_note(row, col, obj_id, author, encoding, visible)) + @worksheet.__send__("store_note", row, col, obj_id, author, encoding, visible)) assert_equal(target, result, caption) end def test_defined_author_name - data = @worksheet.comment_params(2,0,'Test', :author => 'Username') + data = @worksheet.__send__("comment_params", 2, 0,'Test', :author => 'Username') row = data[0] col = data[1] author = data[4] encoding = data[5] visible = data[6] @@ -56,10 +56,10 @@ target = %w( 1C 00 14 00 02 00 00 00 00 00 01 00 08 00 00 55 73 65 72 6E 61 6D 65 00 ).join(' ') result = unpack_record( - @worksheet.store_note(row,col,obj_id,author,encoding,visible)) + @worksheet.__send__("store_note", row,col,obj_id,author,encoding,visible)) assert_equal(target, result, caption) end ############################################################################### #