mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
ef9a9697ab
Done with `rubocop --auto-correct --only TrailingWhitespace`
13 lines
302 B
Ruby
13 lines
302 B
Ruby
Shindo.tests('Fog#wait_for', 'core') do
|
|
tests("success") do
|
|
tests('Fog#wait_for').formats(:duration => Integer) do
|
|
Fog.wait_for(1) { true }
|
|
end
|
|
end
|
|
|
|
tests("failure") do
|
|
tests('Fog#wait_for').raises(Fog::Errors::TimeoutError) do
|
|
Fog.wait_for(2) { false }
|
|
end
|
|
end
|
|
end
|