Add spec helper that waits for the next second to begin (instead of sleeping for a whole second)
This commit is contained in:
@@ -122,7 +122,7 @@ describe "Directories" do
|
||||
end
|
||||
|
||||
it "updates the timestamp of the directory" do
|
||||
sleep 1
|
||||
wait_a_second
|
||||
put "/jimmy/tasks/home/trash", "take out the trash"
|
||||
|
||||
@directory.reload
|
||||
|
||||
Reference in New Issue
Block a user