Sha256: b10094944ff22d5db28ef77f17eec9de757a796995cfc6e235eadb0e899dd4bc
Contents?: true
Size: 672 Bytes
Versions: 3
Compression:
Stored size: 672 Bytes
Contents
require 'spec_helper' describe Roo::Spreadsheet do describe '.open' do context 'when the file extension is uppercase' do let(:filename) { 'file.XLS' } it 'loads the proper type' do Roo::Excel.should_receive(:new).with(filename, {}) Roo::Spreadsheet.open(filename) end end context 'for a csv file' do let(:filename) { 'file.csv' } let(:options) { {csv_options: {col_sep: '"'}} } context 'with options' do it 'passes the options through' do Roo::CSV.should_receive(:new).with(filename, options) Roo::Spreadsheet.open(filename, options) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
roo-1.12.2 | spec/lib/roo/spreadsheet_spec.rb |
roo-1.12.1 | spec/lib/roo/spreadsheet_spec.rb |
roo-1.12.0 | spec/lib/roo/spreadsheet_spec.rb |