diff --git a/lib/dnsimple/client/domains_dnssec.rb b/lib/dnsimple/client/domains_dnssec.rb index 69979812..18b5626d 100644 --- a/lib/dnsimple/client/domains_dnssec.rb +++ b/lib/dnsimple/client/domains_dnssec.rb @@ -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 diff --git a/spec/dnsimple/client/domains_dnssec_spec.rb b/spec/dnsimple/client/domains_dnssec_spec.rb index 1578077a..40be5919 100644 --- a/spec/dnsimple/client/domains_dnssec_spec.rb +++ b/spec/dnsimple/client/domains_dnssec_spec.rb @@ -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