aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/roo/base_spec.rb
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:39:56 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2023-02-08 00:39:56 -0500
commitae103e148eb3c15606b816505492d870ef062ad3 (patch)
treeb7916225d76ac8d1db28feff7aa46a4ee672b3dc /spec/lib/roo/base_spec.rb
parentf5fb17e5a64b215644bc104f099dad8c2f10c37d (diff)
New upstream version 2.10.0.upstream/2.10.0
Diffstat (limited to 'spec/lib/roo/base_spec.rb')
-rw-r--r--spec/lib/roo/base_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/lib/roo/base_spec.rb b/spec/lib/roo/base_spec.rb
index 76cefcc..9d44656 100644
--- a/spec/lib/roo/base_spec.rb
+++ b/spec/lib/roo/base_spec.rb
@@ -182,6 +182,14 @@ describe Roo::Base do
end
end
+ describe '#each_with_pagename' do
+ it 'should return an enumerator with all the rows' do
+ each_with_pagename = spreadsheet.each_with_pagename
+ expect(each_with_pagename).to be_a(Enumerator)
+ expect(each_with_pagename.to_a.last).to eq([spreadsheet.default_sheet, spreadsheet])
+ end
+ end
+
describe '#each' do
it 'should return an enumerator with all the rows' do
each = spreadsheet.each