summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-07-09 20:59:41 +0200
committerBrice Figureau <brice-puppet@daysofwonder.com>2009-07-20 20:16:58 +0200
commitf2c55cc6b4dd6a4db307ea1c031120398fe5fc7e (patch)
treef2dce699e649148812e44711e4da3026c174f873 /spec/unit
parent8bbd8b4bb295fee7ad99f6137c9851528f1729cc (diff)
downloadpuppet-f2c55cc6b4dd6a4db307ea1c031120398fe5fc7e.tar.gz
puppet-f2c55cc6b4dd6a4db307ea1c031120398fe5fc7e.tar.xz
puppet-f2c55cc6b4dd6a4db307ea1c031120398fe5fc7e.zip
Fix #2378 and #2391 tests
Fix #2378 - Add some integration tests for catalog filtering Fix #2391 - Fix up some of the tests Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/transaction.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/unit/transaction.rb b/spec/unit/transaction.rb
index 26154e9b9..0e3674775 100755
--- a/spec/unit/transaction.rb
+++ b/spec/unit/transaction.rb
@@ -55,7 +55,7 @@ describe Puppet::Transaction do
describe "when skipping a resource" do
before :each do
- @resource = stub_everything 'res', :exported? => true
+ @resource = stub_everything 'res'
@catalog = Puppet::Resource::Catalog.new
@transaction = Puppet::Transaction.new(@catalog)
end
@@ -76,6 +76,7 @@ describe Puppet::Transaction do
end
it "should skip exported resource" do
+ @resource.stubs(:exported?).returns true
@transaction.skip?(@resource).should be_true
end
end