Skip to content

Commit

Permalink
Fix get_dnssec
Browse files Browse the repository at this point in the history
  • Loading branch information
aeden committed Mar 6, 2017
1 parent 92a3d6f commit 4ce761f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/dnsimple/client/domains_dnssec.rb
Expand Up @@ -48,7 +48,7 @@ def disable_dnssec(account_id, domain_name, options = {})
# @raise [Dnsimple::NotFoundError]
# @raise [Dnsimple::RequestError]
def get_dnssec(account_id, domain_name, options = {})
response = client.get(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), nil, options)
response = client.get(Client.versioned("/%s/domains/%s/dnssec" % [account_id, domain_name]), options)

Dnsimple::Response.new(response, Struct::Dnssec.new(response["data"]))
end
Expand Down
2 changes: 1 addition & 1 deletion spec/dnsimple/client/domains_dnssec_spec.rb
Expand Up @@ -98,7 +98,7 @@
end

it "returns the dnssec status" do
response = subject.enable_dnssec(account_id, domain_id)
response = subject.get_dnssec(account_id, domain_id)
expect(response).to be_a(Dnsimple::Response)

result = response.data
Expand Down

0 comments on commit 4ce761f

Please sign in to comment.