diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-18 11:08:34 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:26 -0600 |
| commit | 0cf9decfeab5a45f8457af2e51633fd6e0f877fc (patch) | |
| tree | 12e955f711ef3ff354db91091d8e3aafc9d5f17f /spec/unit/util | |
| parent | 0fc067449a5e6f4941e2dfe232383b94f163b110 (diff) | |
| download | puppet-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-x | spec/unit/util/settings.rb | 5 |
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) |
