]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(maint) Fix failing spec test with Puppet 3.3.0-rc2
authorJeff McCune <jeff@puppetlabs.com>
Thu, 29 Aug 2013 19:54:14 +0000 (12:54 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Thu, 29 Aug 2013 20:02:31 +0000 (13:02 -0700)
commit806430224ad0da860be3761ab83f1e574b64fc60
tree1e93c09ae8d1eda559a71b698b55750268fe7164
parent10575587f42fcd84284e0ba85a6c656a37870aa8
(maint) Fix failing spec test with Puppet 3.3.0-rc2

Without this patch the stdlib spec tests are failing against recent
versions of Puppet.  The root cause of this problem is a change in the
behavior of create_resources in Puppet 6baa57b.  The change in behavior
caused the :name key to be omitted from the hash returned by
Puppet::Parser::Resource#to_hash which in turn is causing the test
failure.

This patch addresses the problem by updating the test to match the
description of the example.  Only the attribute :ensure is checked
instead of the full hash itself.
spec/functions/ensure_packages_spec.rb