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

rename zone request to zones

This commit is contained in:
Michael Hale 2011-06-17 02:38:24 -07:00 committed by geemus
parent 02beddb1ac
commit 368265fa84
4 changed files with 6 additions and 6 deletions

View file

@ -48,9 +48,9 @@ task :default => :test
namespace :test do
task :dynect do
[false, true].each do |mock|
[false].each do |mock|
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/dns/requests/dynect")
sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/dns/models/")
#sh("export FOG_MOCK=#{mock} && bundle exec shindont tests/dns/models/")
end
end
end

View file

@ -14,7 +14,7 @@ module Fog
request_path 'fog/dns/requests/dynect'
request :session
request :zone
request :zones
class Real
def initialize(options={})

View file

@ -5,7 +5,7 @@ module Fog
require 'fog/dns/parsers/dynect/zone'
def zone
def zones
request(
:parser => Fog::Parsers::Dynect::DNS::Zone.new,
:expects => 200,
@ -17,7 +17,7 @@ module Fog
class Mock
def zone
def zones
response = Excon::Response.new
response.status = 200
response.body = {

View file

@ -8,7 +8,7 @@ Shindo.tests('Dynect::dns | DNS requests', ['dynect', 'dns']) do
end
tests "list zones" do
response = Dynect[:dns].zone
response = Dynect[:dns].zones
returns(true) { response.body['zones'].first =~ /\.com/ && true }
returns(true) { response.status == 200 }
end