[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
1 changed files with 1 additions and 0 deletions

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