Sha256: b8e90a33c06d9574c47ea5bf21690627fb6b8234d4bf3e5bf6305b2bbf8fca73
Contents?: true
Size: 858 Bytes
Versions: 2
Compression:
Stored size: 858 Bytes
Contents
require 'spec_helper' describe Roo::Excelx do describe '.new' do subject { Roo::Excelx.new('test/files/numbers1.xlsx') } it 'creates an instance' do expect(subject).to be_a(Roo::Excelx) end context 'given a file with missing rels' do subject { Roo::Excelx.new('test/files/file_item_error.xlsx') } it 'creates an instance' do expect(subject).to be_a(Roo::Excelx) end end end describe '#cell' do context 'for a link cell' do context 'with numeric contents' do subject { Roo::Excelx.new('test/files/numeric-link.xlsx').cell('A', 1) } it 'returns a link with the number as a string value' do expect(subject).to be_a(Spreadsheet::Link) expect(subject).to eq("8675309.0") end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
shoppe-paypal-1.1.0 | vendor/bundle/ruby/2.1.0/gems/roo-1.13.2/spec/lib/roo/excelx_spec.rb |
roo-1.13.2 | spec/lib/roo/excelx_spec.rb |