From: Jonathan Boyett Date: Tue, 28 Jun 2011 18:40:43 +0000 (-0700) Subject: use setup_resource method in iptables_type_spec X-Git-Tag: v0.0.1~27 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=9f7d0b660a2f5312a743d9e8871630bd966c9fab;p=puppet-modules%2Fpuppetlabs-firewall.git use setup_resource method in iptables_type_spec --- diff --git a/spec/type/iptables_type_spec.rb b/spec/type/iptables_type_spec.rb index aa8480d..c389cd6 100644 --- a/spec/type/iptables_type_spec.rb +++ b/spec/type/iptables_type_spec.rb @@ -2,10 +2,10 @@ require 'spec_helper' describe Puppet::Type.type(:firewall) do before :each do - @resource = Puppet::Type.type(:firewall).new({ - :name => 'new_resource', + setup_resource(:firewall, { + :name => '000 test foo', :chain => 'INPUT', - :jump => 'ACCEPT' + :jump => 'ACCEPT' }) end