Skip to content

Commit

Permalink
Add test for ConfigView#each
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdefreyne committed Oct 21, 2015
1 parent 8670cb8 commit aacdc00
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/nanoc/base/views/config_spec.rb
Expand Up @@ -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

0 comments on commit aacdc00

Please sign in to comment.