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:
parent
8fd87b0338
commit
469a2152de
1 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue