1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fix broken test related to redacted excon error bodies

This commit is contained in:
geemus 2013-05-20 11:02:39 -05:00
parent bd154704f5
commit 16cbeb1e14
3 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@ Gem::Specification.new do |s|
## List your runtime dependencies here. Runtime dependencies are those
## that are needed for an end user to actually USE your code.
s.add_dependency('builder')
s.add_dependency('excon', '~>0.20')
s.add_dependency('excon', '~>0.22.1')
s.add_dependency('formatador', '~>0.2.0')
s.add_dependency('multi_json', '~>1.0')
s.add_dependency('mime-types')

View file

@ -68,7 +68,7 @@ module Fog
})
new(file_data)
rescue Excon::Errors::NotFound => error
case error.message
case error.response.body
when /<Code>NoSuchKey<\/Code>/
nil
when /<Code>NoSuchBucket<\/Code>/

View file

@ -68,7 +68,7 @@ module Fog
})
new(file_data)
rescue Excon::Errors::NotFound => error
case error.message
case error.response.body
when /<Code>NoSuchKey<\/Code>/
nil
when /<Code>NoSuchBucket<\/Code>/