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:
parent
02beddb1ac
commit
368265fa84
4 changed files with 6 additions and 6 deletions
4
Rakefile
4
Rakefile
|
@ -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
|
||||
|
|
|
@ -14,7 +14,7 @@ module Fog
|
|||
|
||||
request_path 'fog/dns/requests/dynect'
|
||||
request :session
|
||||
request :zone
|
||||
request :zones
|
||||
|
||||
class Real
|
||||
def initialize(options={})
|
||||
|
|
|
@ -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 = {
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue