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:
parent
bd154704f5
commit
16cbeb1e14
3 changed files with 3 additions and 3 deletions
|
@ -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')
|
||||
|
|
|
@ -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>/
|
||||
|
|
|
@ -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>/
|
||||
|
|
Loading…
Reference in a new issue