diff options
| author | Luke Kanies <luke@madstop.com> | 2008-02-07 15:31:43 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-02-07 15:31:43 -0600 |
| commit | 2931723bae9e4226ab8eb7f6f806bf9a2ea5cbb8 (patch) | |
| tree | 97faf9a4fe67acc739fd2ecc9ef2e483feac61cf /spec | |
| parent | f19e106b5ee0eab0ca0de2f441073b37540f3e8f (diff) | |
| download | puppet-2931723bae9e4226ab8eb7f6f806bf9a2ea5cbb8.tar.gz puppet-2931723bae9e4226ab8eb7f6f806bf9a2ea5cbb8.tar.xz puppet-2931723bae9e4226ab8eb7f6f806bf9a2ea5cbb8.zip | |
Fixing the Settings class so that it correctly handles
file values that are false.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/util/settings.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/util/settings.rb b/spec/unit/util/settings.rb index f00afd1b7..b44a30eb2 100755 --- a/spec/unit/util/settings.rb +++ b/spec/unit/util/settings.rb @@ -605,6 +605,12 @@ describe Puppet::Util::Settings, " when being used to manage the host machine" d lambda { trans.to_catalog }.should_not raise_error end + it "should ignore file settings whose values are not strings" do + @settings[:maindir] = false + + lambda { trans = @settings.to_transportable }.should_not raise_error + end + it "should be able to turn the current configuration into a parseable manifest" it "should convert octal numbers correctly when producing a manifest" |
