Skip to content

Commit

Permalink
Domain record create response key is record, not domain_record.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycuadra committed May 8, 2014
1 parent 05eccd3 commit 2d7363b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/lita/handlers/digitalocean/domain_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def create(response)
client.domains.create_record(id, params)
end or return

response.reply(t("domain_records.create.created", do_response[:domain_record]))
response.reply(t("domain_records.create.created", do_response[:record]))
end

def delete(response)
Expand Down
2 changes: 1 addition & 1 deletion spec/lita/handlers/digitalocean/domain_record_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
priority: "123",
record_type: "srv",
weight: "789"
).and_return(status: "OK", domain_record: { id: 123 })
).and_return(status: "OK", record: { id: 123 })
send_command("do domain records create example.com srv @ --name foo --priority 123 --port 456 --weight 789")
expect(replies.last).to eq("Created new DNS record: 123")
end
Expand Down

0 comments on commit 2d7363b

Please sign in to comment.