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

[dns|dynect] fixes to play nice with mocked test runs

This commit is contained in:
geemus 2011-08-16 11:57:17 -05:00
parent 7fecd4fc60
commit 2404e029c6
2 changed files with 9 additions and 0 deletions

View file

@ -24,6 +24,13 @@ module Fog
request :put_zone
class Mock
def initialize(options={})
@dynect_customer = options[:dynect_customer]
@dynect_username = options[:dynect_username]
@dynect_password = options[:dynect_password]
end
end
class Real

View file

@ -1,5 +1,7 @@
Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
pending if Fog.mocking?
shared_format = {
'job_id' => Integer,
'msgs' => [{