Skip to content

Commit

Permalink
Add specs for listAllDomains()
Browse files Browse the repository at this point in the history
  • Loading branch information
weppos committed Dec 16, 2015
1 parent 09cbcf4 commit a80842e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/dnsimple/client/domains_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@
end
end

describe "#all_domains" do
let(:account_id) { 1010 }

it "delegates to client.paginate" do
expect(subject.client).to receive(:paginate).with(subject, :domains, account_id, { foo: "bar" })
subject.all_domains(account_id, { foo: "bar" })
end
end

describe "#domain" do
let(:account_id) { 1010 }

Expand Down

0 comments on commit a80842e

Please sign in to comment.