Sha256: d083a6b61282a41ac25fafb9ac01a265b4a1f2dd331b24c0721e5111a7e212d3
Contents?: true
Size: 710 Bytes
Versions: 3
Compression:
Stored size: 710 Bytes
Contents
require 'spec_helper' describe Rspreadsheet::Workbook do it 'has correct number of sheets' do book = Rspreadsheet.new($test_filename) book.worksheets_count.should == 1 book.worksheets[0].should be_nil book.worksheets[1].should be_kind_of(Rspreadsheet::Worksheet) book.worksheets[2].should be_nil book.worksheets[nil].should be_nil end it 'freshly created has correctly namespaced xmlnode' do @xmlnode = Rspreadsheet.new.xmlnode @xmlnode.namespaces.to_a.size.should >5 @xmlnode.namespaces.find_by_prefix('office').should_not be_nil @xmlnode.namespaces.find_by_prefix('table').should_not be_nil @xmlnode.namespaces.namespace.prefix.should == 'office' end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rspreadsheet-0.1.1 | spec/workbook_spec.rb |
rspreadsheet-0.1.0 | spec/workbook_spec.rb |
rspreadsheet-0.0.6 | spec/workbook_spec.rb |