mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[storage] update test requests w/blocks to match excon 0.6.0
This commit is contained in:
parent
13f080c6b3
commit
efccac5e0f
3 changed files with 10 additions and 2 deletions
|
@ -20,7 +20,7 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
|
|||
|
||||
tests("#get_object('#{@directory.identity}', 'fog_object', &block)").returns(lorem_file.read) do
|
||||
data = ''
|
||||
AWS[:storage].get_object(@directory.identity, 'fog_object') do |chunk|
|
||||
AWS[:storage].get_object(@directory.identity, 'fog_object') do |chunk, remaining_bytes, total_bytes|
|
||||
data << chunk
|
||||
end
|
||||
data
|
||||
|
|
|
@ -20,7 +20,7 @@ Shindo.tests('Google::Storage | object requests', ['google']) do
|
|||
|
||||
tests("#get_object('#{@directory.identity}', 'fog_object', &block)").returns(lorem_file.read) do
|
||||
data = ''
|
||||
Google[:storage].get_object(@directory.identity, 'fog_object') do |chunk|
|
||||
Google[:storage].get_object(@directory.identity, 'fog_object') do |chunk, remaining_bytes, total_bytes|
|
||||
data << chunk
|
||||
end
|
||||
data
|
||||
|
|
|
@ -16,6 +16,14 @@ Shindo.tests('Rackspace::Storage | object requests', ['rackspace']) do
|
|||
Rackspace[:storage].get_object('fogobjecttests', 'fog_object')
|
||||
end
|
||||
|
||||
tests("#get_object('fogobjecttests', 'fog_object', &block)").returns(lorem_file.read) do
|
||||
data = ''
|
||||
Rackspace[:storage].get_object('fogobjecttests', 'fog_object') do |chunk, remaining_bytes, total_bytes|
|
||||
data << chunk
|
||||
end
|
||||
data
|
||||
end
|
||||
|
||||
tests("#head_object('fogobjectests', 'fog_object')").succeeds do
|
||||
pending if Fog.mocking?
|
||||
Rackspace[:storage].head_object('fogobjecttests', 'fog_object')
|
||||
|
|
Loading…
Add table
Reference in a new issue