diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-23 15:32:19 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-23 15:32:19 +0000 |
commit | bda74bcd8e569d8be26bd1b958e38c0a15f5177c (patch) | |
tree | db3bbc149575edfc8159e7ef7f2173117d4d1112 /test | |
parent | f8115a79b97c89412616958f56ca1b723a6e2d24 (diff) | |
download | puppet-bda74bcd8e569d8be26bd1b958e38c0a15f5177c.tar.gz puppet-bda74bcd8e569d8be26bd1b958e38c0a15f5177c.tar.xz puppet-bda74bcd8e569d8be26bd1b958e38c0a15f5177c.zip |
Fixing #415. Configuration parsing now removes trailing whitespace.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2082 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-x | test/other/config.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/other/config.rb b/test/other/config.rb index 3eb6b77a6..285331c72 100755 --- a/test/other/config.rb +++ b/test/other/config.rb @@ -916,6 +916,18 @@ inttest = 27 # assert(! yay.find { |o| o.class.name == :group and o.name == "root" }, # "Found root group") end + + # #415 + def test_remove_trailing_spaces + config = mkconfig() + config.setdefaults(:yay, :rah => ["testing", "a desc"]) + + file = tempfile() + File.open(file, "w") { |f| f.puts "rah = something " } + + assert_nothing_raised { config.parse(file) } + assert_equal("something", config[:rah], "did not remove trailing whitespace in parsing") + end end # $Id$ |