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

[patch] Added a wait_for block to shared examples

This commit is contained in:
Paul Thornthwaite 2010-09-09 14:57:11 +01:00 committed by geemus
parent 524a30918d
commit a449d0dafb

View file

@ -13,6 +13,7 @@ shared_examples_for "Servers" do
it "should return a matching server if one exists" do
subject.save
subject.wait_for { ready? }
get = @servers.get(subject.id)
subject.attributes.should == get.attributes
end