summaryrefslogtreecommitdiffstats
path: root/spec/unit/util
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-12-18 11:08:34 -0600
committerLuke Kanies <luke@madstop.com>2008-12-18 11:10:26 -0600
commit0cf9decfeab5a45f8457af2e51633fd6e0f877fc (patch)
tree12e955f711ef3ff354db91091d8e3aafc9d5f17f /spec/unit/util
parent0fc067449a5e6f4941e2dfe232383b94f163b110 (diff)
downloadpuppet-0cf9decfeab5a45f8457af2e51633fd6e0f877fc.tar.gz
puppet-0cf9decfeab5a45f8457af2e51633fd6e0f877fc.tar.xz
puppet-0cf9decfeab5a45f8457af2e51633fd6e0f877fc.zip
Canonicalizing Setting section names to symbols.
I thought I was already using symbols everywhere so it didn't matter, but there are a few places (e.g., the process name) where they were strings, and that made things not work so much. Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'spec/unit/util')
-rwxr-xr-xspec/unit/util/settings.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/util/settings.rb b/spec/unit/util/settings.rb
index 0b43eeb96..a18dd340a 100755
--- a/spec/unit/util/settings.rb
+++ b/spec/unit/util/settings.rb
@@ -657,6 +657,11 @@ describe Puppet::Util::Settings do
@settings.use(:main, :other)
end
+ it "should canonicalize the sections" do
+ @settings.expects(:to_catalog).with(:main, :other).returns Puppet::Resource::Catalog.new("foo")
+ @settings.use("main", "other")
+ end
+
it "should ignore sections that have already been used" do
@settings.expects(:to_catalog).with(:main).returns Puppet::Resource::Catalog.new("foo")
@settings.use(:main)