Sha256: 8b3d3d777aa773cf48552983f5c5dd1619f336d47ac12a8c60028d923541e6b7
Contents?: true
Size: 742 Bytes
Versions: 23
Compression:
Stored size: 742 Bytes
Contents
require 'spec_helper' describe Roo::LibreOffice do describe '.new' do subject do Roo::LibreOffice.new('test/files/numbers1.ods') end it 'creates an instance' do expect(subject).to be_a(Roo::LibreOffice) end end describe '#sheets' do let(:path) { 'test/files/hidden_sheets.ods' } describe 'showing all sheets' do it 'returns the expected result' do expect(Roo::LibreOffice.new(path).sheets).to eq ["HiddenSheet1", "VisibleSheet1", "HiddenSheet2"] end end describe 'only showing visible sheets' do it 'returns the expected result' do expect(Roo::LibreOffice.new(path, only_visible_sheets: true).sheets).to eq ["VisibleSheet1"] end end end end
Version data entries
23 entries across 23 versions & 2 rubygems