diff --git a/spec/nanoc/base/views/config_spec.rb b/spec/nanoc/base/views/config_spec.rb index b46273268a..f74a4e8955 100644 --- a/spec/nanoc/base/views/config_spec.rb +++ b/spec/nanoc/base/views/config_spec.rb @@ -64,4 +64,13 @@ it { should eql?(false) } end end + + describe '#each' do + example do + res = [] + view.each { |k, v| res << [k, v] } + + expect(res).to eql([[:amount, 9000], [:animal, 'donkey']]) + end + end end