Treat non-ascii URLs in UrlValidator.

This commit is contained in:
Guo Xiang Tan
2017-12-21 14:22:55 +08:00
parent 6ecf37c482
commit 4b51871f6a
2 changed files with 8 additions and 1 deletions

View File

@ -23,6 +23,8 @@ RSpec.describe UrlValidator do
[
"http://discourse.productions",
"https://google.com",
'http://xn--nw2a.xn--j6w193g/',
"http://見.香港/",
].each do |valid_url|
it "#{valid_url} should be valid" do
record.website = valid_url