diff options
| author | James Turnbull <james@lovedthanlost.net> | 2009-02-26 11:43:39 +1100 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2009-02-26 11:43:39 +1100 |
| commit | 5f73eb553fd083b558fb9553b0c07b6019d0ccee (patch) | |
| tree | 123ef2a9c7b8aa4e1cd52e6b98d0b3c53d626de6 /test/lib | |
| parent | e40aea3c655e698d26c29370227b52c489e6db2b (diff) | |
| download | puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.tar.gz puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.tar.xz puppet-5f73eb553fd083b558fb9553b0c07b6019d0ccee.zip | |
Fixed #1849 - Ruby 1.9 portability: `when' doesn't like colons, replace with semicolons
Diffstat (limited to 'test/lib')
| -rwxr-xr-x | test/lib/puppettest.rb | 4 | ||||
| -rw-r--r-- | test/lib/puppettest/support/utils.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/lib/puppettest.rb b/test/lib/puppettest.rb index 42295785e..3c6083fa6 100755 --- a/test/lib/puppettest.rb +++ b/test/lib/puppettest.rb @@ -255,8 +255,8 @@ module PuppetTest def tmpdir unless defined? @tmpdir and @tmpdir @tmpdir = case Facter["operatingsystem"].value - when "Darwin": "/private/tmp" - when "SunOS": "/var/tmp" + when "Darwin"; "/private/tmp" + when "SunOS"; "/var/tmp" else "/tmp" end diff --git a/test/lib/puppettest/support/utils.rb b/test/lib/puppettest/support/utils.rb index adc3b09ff..f23c6483b 100644 --- a/test/lib/puppettest/support/utils.rb +++ b/test/lib/puppettest/support/utils.rb @@ -72,7 +72,7 @@ module PuppetTest::Support::Utils def run_events(type, trans, events, msg) case type - when :evaluate, :rollback: # things are hunky-dory + when :evaluate, :rollback # things are hunky-dory else raise Puppet::DevError, "Incorrect run_events type" end |
