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

- old
+ new

@@ -23,14 +23,14 @@ @dims = ['row_min', 'row_max', 'col_min', 'col_max'] @smiley = [0x263a].pack('n') 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_no_worksheet_cell_data data = @worksheet.__send__("store_dimensions")