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

14 lines
302 B
Ruby
Raw Permalink Normal View History

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