Sha256: 9ba99034492dc99aa1c4f719a95a211a386b07904813674d0661233e9ff36917

Contents?: true

Size: 769 Bytes

Versions: 13

Compression:

Stored size: 769 Bytes

Contents

#!/usr/bin/env ruby
# TestWorkbook -- Spreadsheet -- 24.09.2008 -- hwyss@ywesee.com

$: << File.expand_path('../lib', File.dirname(__FILE__))

require 'test/unit'
require 'spreadsheet'
require 'fileutils'
require 'stringio'

module Spreadsheet
  class TestWorkbook < Test::Unit::TestCase
    def setup
      @io = StringIO.new ''
      @book = Workbook.new
    end
    def test_writer__default_excel
      assert_instance_of Excel::Writer::Workbook, @book.writer(@io)
    end
    def test_sheet_count
        @worksheet1 = Excel::Worksheet.new
        @book.add_worksheet @worksheet1
        assert_equal 1, @book.sheet_count
        @worksheet2 = Excel::Worksheet.new
        @book.add_worksheet @worksheet2
        assert_equal 2, @book.sheet_count
    end
  end
end

Version data entries

13 entries across 13 versions & 4 rubygems

Version Path
nulogy-spreadsheet-0.6.5.7.4 test/workbook.rb
spreadsheet-0.7.1 test/workbook.rb
spreadsheet-0.7.0 test/workbook.rb
spreadsheet-0.6.9 test/workbook.rb
spreadsheet-0.6.8 test/workbook.rb
spreadsheet-0.6.7 test/workbook.rb
nulogy-spreadsheet-0.6.5.7.3 test/workbook.rb
nulogy-spreadsheet-0.6.5.7.2 test/workbook.rb
spreadsheet-martica-0.6.5.7.m2 test/workbook.rb
spreadsheet-martica-0.6.5.7.m1 test/workbook.rb
ttb-spreadsheet-0.6.5.8 test/workbook.rb
spreadsheet-0.6.5.9 test/workbook.rb
spreadsheet-0.6.5.8 test/workbook.rb