diff options
| author | 2022-03-19 21:47:36 -0400 | |
|---|---|---|
| committer | 2022-03-19 21:47:36 -0400 | |
| commit | f5fb17e5a64b215644bc104f099dad8c2f10c37d (patch) | |
| tree | 6ad047451881cfe94f3aabe1c33b404c134a5085 /spec/lib/roo/excelx_spec.rb | |
| parent | 9e07e8cd4836ddc89accdb7b20152c9a4f06fd03 (diff) | |
New upstream version 2.9.0.upstream/2.9.0
Diffstat (limited to 'spec/lib/roo/excelx_spec.rb')
| -rwxr-xr-x | spec/lib/roo/excelx_spec.rb | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/lib/roo/excelx_spec.rb b/spec/lib/roo/excelx_spec.rb index 1b67a4d..7cc9b13 100755 --- a/spec/lib/roo/excelx_spec.rb +++ b/spec/lib/roo/excelx_spec.rb @@ -86,6 +86,14 @@ describe Roo::Excelx do end end + describe 'for a workbook with hidden sheets' do + let(:path) { 'test/files/hidden_sheets.xlsx' } + + it 'returns the cell contents from the visible sheet' do + expect(Roo::Excelx.new(path, only_visible_sheets: true).cell('A', 1)).to eq "visible sheet 1" + end + end + describe '#parse' do let(:path) { 'test/files/numeric-link.xlsx' } @@ -653,4 +661,4 @@ describe 'Roo::Excelx with options set' do end end end -end
\ No newline at end of file +end |
