Add spec helper that waits for the next second to begin (instead of sleeping for a whole second)

This commit is contained in:
2012-09-26 19:47:22 +02:00
parent 52b32fb396
commit 4d01144bf4
2 changed files with 6 additions and 1 deletions

View File

@@ -43,4 +43,9 @@ def purge_all_buckets
end
end
def wait_a_second
now = Time.now.to_i
while Time.now.to_i == now; end
end
alias context describe