rodjek/rspec-puppet — pull request #167 by doc75 (2014-02-09 16:32:08+00:00)
Title: ensure better error message when expecting an Array, but the content defined is nil

In case we expect an Array, but in manifest nothing is defined we currently have a useless error message: "NoMethodError: undefined method `size' for nil:NilClass".

This patch allow to have the real underlying error message by preventing the call to nil.size.

I did not find a way to add a test to cover this case. in case you have way to do so, I'll be happy to get info on how to do it.

Could you also bump the version and publish a new gem since it has not be been done for a while now ?

Thanks.