diff options
| author | Luke Kanies <luke@madstop.com> | 2009-02-28 06:40:46 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2009-02-28 06:40:46 +0000 |
| commit | 23066c1b117af4d531efad79ee11ed683ac92e5e (patch) | |
| tree | 63f4963134fdeeb84a9d9b2a23537725cad675a6 /spec/unit/node | |
| parent | ec56ddf8f5b58f16d0067055346889be79b29186 (diff) | |
Fixing every failing test I can find on the build server.
All but one of these tests is fixed by:
* Stubbing Puppet.settings.use
* Adding /usr/sbin to PATH
The only other one was the package integration test,
which stupidly assumed a default was specified in the test.
The fix here is twofold: Remove that assumption (the test is
now 'pending' if no default is available), and add a default
for Ubuntu. (The default is in the test, not the default
package provider - that is, it's testing the default package
provider, thus it can't rely on that information.)
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/node')
| -rwxr-xr-x | spec/unit/node/catalog.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/unit/node/catalog.rb b/spec/unit/node/catalog.rb index be198b88e..f6ef291a5 100755 --- a/spec/unit/node/catalog.rb +++ b/spec/unit/node/catalog.rb @@ -794,6 +794,7 @@ describe Puppet::Node::Catalog, " when writing dot files" do end it "should write a dot file based on the passed name" do + Puppet.settings.stubs(:use) File.expects(:open).with(@file, "w").yields(stub("file", :puts => nil)) @catalog.expects(:to_dot).with("name" => @name.to_s.capitalize) @catalog.host_config = true |
