Sha256: bbb8e2162af1ca3e49e336f0fddbe01ee933b00b789b833f2a6ab2732c924bc7
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
require 'test/unit' require 'spreadsheet' class TestSpreadsheet < Test::Unit::TestCase def test_bug_last_row_255 after Date.new(2010,2,15) do Spreadsheet.client_encoding = 'UTF-8' book = Spreadsheet.open(File.join('test','ScienceStaff.xls')) sheet1 = book.worksheet 0 count = 0 sheet1.each do |row| count += 1 # do something interesting with a row end puts "#{count} rows found" assert_equal 1537, count end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roo-1.9.3 | test/test_spreadsheet.rb |
roo-1.9.2 | test/test_spreadsheet.rb |