summaryrefslogtreecommitdiffstats
path: root/spec/unit/resource
diff options
context:
space:
mode:
authorLuke Kanies <luke@puppetlabs.com>2010-06-11 09:47:57 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit58cf8d9dcbef783e280782d56febf06822e3e4eb (patch)
tree79ea8b84df06f56f961c0fb2d8ed305611d44540 /spec/unit/resource
parent8f3e8bb31d513f67ea28a5f249aa850789a10ff2 (diff)
Working #3139 - Catalogs default to host_config
The whole host_config concept is a bit outdated now that Configurer exists, I think, (since any catalog it uses should be a host_config). However, fixing that is outside of the scope of this series. In the meantime, this does a better job of making sure every catalog except the Settings catalogs are host_configs. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec/unit/resource')
-rwxr-xr-xspec/unit/resource/catalog.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/unit/resource/catalog.rb b/spec/unit/resource/catalog.rb
index bd241fd17..e633b131c 100755
--- a/spec/unit/resource/catalog.rb
+++ b/spec/unit/resource/catalog.rb
@@ -628,8 +628,13 @@ describe Puppet::Resource::Catalog, "when compiling" do
end
end
- it "should default to not being a host catalog" do
- @catalog.host_config.should be_nil
+ it "should default to being a host catalog" do
+ @catalog.host_config.should be_true
+ end
+
+ it "should be able to be set to a non-host_config" do
+ @catalog.host_config = false
+ @catalog.host_config.should be_false
end
it "should pass supplied tags on to the transaction" do