summaryrefslogtreecommitdiffstats
path: root/test/network
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-02-26 11:43:39 +1100
committerJames Turnbull <james@lovedthanlost.net>2009-02-26 11:43:39 +1100
commit5f73eb553fd083b558fb9553b0c07b6019d0ccee (patch)
tree123ef2a9c7b8aa4e1cd52e6b98d0b3c53d626de6 /test/network
parente40aea3c655e698d26c29370227b52c489e6db2b (diff)
downloadpuppet-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/network')
-rwxr-xr-xtest/network/handler/fileserver.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/network/handler/fileserver.rb b/test/network/handler/fileserver.rb
index 9bd26ac07..5158f51ca 100755
--- a/test/network/handler/fileserver.rb
+++ b/test/network/handler/fileserver.rb
@@ -544,13 +544,13 @@ class TestFileServer < Test::Unit::TestCase
host, ip = sub
case type
- when :deny:
+ when :deny
assert_raise(Puppet::AuthorizationError,
"Host %s, ip %s, allowed %s" %
[host, ip, mount]) {
list = server.list(mount, :manage, true, false, host, ip)
}
- when :allow:
+ when :allow
assert_nothing_raised("Host %s, ip %s, denied %s" %
[host, ip, mount]) {
list = server.list(mount, :manage, true, false, host, ip)