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

[aws|dns] add test for Record#modify

This commit is contained in:
Aaron Suggs 2012-02-25 11:44:46 -05:00
parent 8fd87b0338
commit 469a2152de

View file

@ -6,7 +6,14 @@ Shindo.tests("Fog::Dns[:aws] | record", ['aws', 'dns']) do
end
params = { :name => @zone.domain, :type => 'A', :ttl => 3600, :value => ['1.2.3.4'] }
model_tests(@zone.records, params, false)
model_tests(@zone.records, params, false) do
tests("#modify") do
new_value = ['5.5.5.5']
returns(true) { @instance.modify(:value => new_value) }
returns(new_value) { @instance.value }
end
end
tests("zones#destroy").succeeds do
@zone.destroy