]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
Mock Resolv.getaddress in #host_to_ip
authorDan Carley <dan.carley@gmail.com>
Sat, 23 Feb 2013 14:36:17 +0000 (14:36 +0000)
committerDan Carley <dan.carley@gmail.com>
Sat, 23 Feb 2013 17:52:15 +0000 (17:52 +0000)
commited683d97f3c24f263d3f90669d1d9680790b9766
tree34f019e809f979dd2e16a9dde55872ca001a3308
parent64e285288bd5c036320e8584aa143f77cbdeb3d0
Mock Resolv.getaddress in #host_to_ip

Add an expect for Resolv.getaddress in Puppet::Util::Firewall#host_to_ip so
that the test can be run when disconnected from the net. Also isolates it
should should puppetlabs.com move to a different address.
spec/unit/puppet/util/firewall_spec.rb