test/test_23_note.rb in writeexcel-1.0.6 vs test/test_23_note.rb in writeexcel-1.0.7

- old
+ new

@@ -20,14 +20,14 @@ @workbook = WriteExcel.new(StringIO.new) @worksheet = @workbook.add_worksheet end def teardown - if @workbook.instance_variable_get(:@filehandle) - @workbook.instance_variable_get(:@filehandle).close(true) + if @workbook.instance_variable_get("@filehandle") + @workbook.instance_variable_get("@filehandle").close(true) end - if @worksheet.instance_variable_get(:@filehandle) - @worksheet.instance_variable_get(:@filehandle).close(true) + if @worksheet.instance_variable_get("@filehandle") + @worksheet.instance_variable_get("@filehandle").close(true) end end def test_blank_author_name comment = Writeexcel::Worksheet::Comment.new(@worksheet, 2, 0, 'Test')