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

[aws|dns] Changed #insync? to #ready?

This commit is contained in:
George Scott 2012-03-26 13:40:19 -07:00
parent ad81386d98
commit 7945ecb286
2 changed files with 3 additions and 3 deletions

View file

@ -58,7 +58,7 @@ module Fog
# Returns true if record is insync. May only be called for newly created or modified records that
# have a change_id and status set.
def insync?
def ready?
requires :change_id, :status
status == 'INSYNC'
end

View file

@ -15,8 +15,8 @@ Shindo.tests("Fog::Dns[:aws] | record", ['aws', 'dns']) do
end
# Waits for changes to sync to all Route 53 DNS servers. Usually takes ~30 seconds to complete.
tests("#insync? - may take a minute to complete...").succeeds do
@instance.wait_for { insync? }
tests("#ready? - may take a minute to complete...").succeeds do
@instance.wait_for { ready? }
end
tests("#modify") do