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 /spec/integration | |
| 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 'spec/integration')
| -rwxr-xr-x | spec/integration/indirector/direct_file_server.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/integration/indirector/direct_file_server.rb b/spec/integration/indirector/direct_file_server.rb index 7280cda98..9843c7e65 100755 --- a/spec/integration/indirector/direct_file_server.rb +++ b/spec/integration/indirector/direct_file_server.rb @@ -62,9 +62,9 @@ describe Puppet::Indirector::DirectFileServer, " when interacting with FileServi it "should return instances capable of returning their content" do @terminus.search(@request).each do |instance| case instance.full_path - when /one/: instance.content.should == "one content" - when /two/: instance.content.should == "two content" - when @path: + when /one/; instance.content.should == "one content" + when /two/; instance.content.should == "two content" + when @path else raise "No valid key for %s" % instance.path.inspect end |
