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

[dreamhost|dns] record tests fixes

Wait 10 secs for the new record to appear.
This commit is contained in:
Sergio Rubio 2013-01-21 23:04:08 +01:00
parent 90b5d84c6d
commit 4c95f8e209

View file

@ -32,6 +32,7 @@ Shindo.tests("Fog::DNS[:dreamhost] | record", ['dreamhost', 'dns']) do
r = service.records.create :name => name,
:type => 'A',
:value => "8.8.8.8"
sleep 10
tests('#save') do
test('returns Fog::DNS::Dreamhost::Record') do
r.is_a? Fog::DNS::Dreamhost::Record
@ -42,6 +43,9 @@ Shindo.tests("Fog::DNS[:dreamhost] | record", ['dreamhost', 'dns']) do
test("name is #{name}") do
r.name == name
end
test("listed") do
!(service.records.find { |r| r.name == name }).nil?
end
end
tests('#destroy') do
test('returns true') { r.destroy == true }