aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/roo/base_spec.rb
diff options
context:
space:
mode:
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