diff options
| author | 2022-03-19 21:48:07 -0400 | |
|---|---|---|
| committer | 2022-03-19 21:48:07 -0400 | |
| commit | a6e765da9b4da8cf9ddedcbaeb29fe5dca5df263 (patch) | |
| tree | 39a2e5d06c16d048e9618e1170e3b6304fbade2e /spec/lib/roo/excelx_spec.rb | |
| parent | e67f4551479264125a641b955523d95e192b6d44 (diff) | |
| parent | f5fb17e5a64b215644bc104f099dad8c2f10c37d (diff) | |
Update upstream source from tag 'upstream/2.9.0'
Update to upstream version '2.9.0'
with Debian dir 41b8f9c552bbf25b076de11901d6f615d684366f
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 |
