Skip to content

Commit

Permalink
Added another spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed Aug 29, 2017
1 parent c0f79a5 commit 3af2285
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions spec/dnsimple/client/registrar_spec.rb
Expand Up @@ -21,6 +21,13 @@
end

it "works with UTF-8 chars" do
subject.check_domain(account_id, domain_name = "dnsimplé.ch")

expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/registrar/domains/#{domain_name}/check")
.with(headers: { "Accept" => "application/json" })
end

it "works with escaped UTF-8 chars" do
subject.check_domain(account_id, domain_name = "dnsimpl\u{e9}.ch")

expect(WebMock).to have_requested(:get, "https://api.dnsimple.test/v2/#{account_id}/registrar/domains/#{domain_name}/check")
Expand Down

0 comments on commit 3af2285

Please sign in to comment.