summaryrefslogtreecommitdiffstats
path: root/spec/unit
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2010-09-04 18:45:09 -0700
committerJames Turnbull <james@lovedthanlost.net>2010-09-07 12:49:00 +1000
commit4d55c6e72f2576fe7ab27f874db030de5ab6fcee (patch)
tree7921392694449ee9ff41c4b37e40900c8338bd9f /spec/unit
parentb397b698314daae36f59751521be113cfd337095 (diff)
Fix for tests broken by fix for #4489 -- stub standalone
If the file streaming is to be thwarted when running standalone the test for standalone needs to be stubbed when running specs, lest the tests inexplicably fail.
Diffstat (limited to 'spec/unit')
-rwxr-xr-xspec/unit/type/file/content_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/type/file/content_spec.rb b/spec/unit/type/file/content_spec.rb
index a01a14a59..cde643fc8 100755
--- a/spec/unit/type/file/content_spec.rb
+++ b/spec/unit/type/file/content_spec.rb
@@ -6,6 +6,7 @@ content = Puppet::Type.type(:file).attrclass(:content)
describe content do
before do
@resource = Puppet::Type.type(:file).new :path => "/foo/bar"
+ content.stubs(:standalone?).returns(false)
end
it "should be a subclass of Property" do