1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/rackspace/models/dns/zone_tests.rb

14 lines
465 B
Ruby

Shindo.tests('Fog::Rackspace::DNS | zone', ['rackspace']) do
pending if Fog.mocking?
provider = Fog::DNS[:rackspace]
domain_name = uniq_id + '.com'
zone = provider.zones.create({:domain => domain_name, :email => 'hostmaster@' + domain_name})
tests('adding same domain twice throws error').raises(Fog::DNS::Rackspace::CallbackError) do
provider.zones.create({:domain => domain_name, :email => 'hostmaster@' + domain_name})
end
zone.destroy
end