X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/420a7289a0b08eee091f6650c2e83166df3fbe69..5cc4e933479b7e74ed7d4425909f0915717fc1db:/test/models/client_application_test.rb diff --git a/test/models/client_application_test.rb b/test/models/client_application_test.rb index 8e5b21aff..c0b7b7977 100644 --- a/test/models/client_application_test.rb +++ b/test/models/client_application_test.rb @@ -3,7 +3,7 @@ require "test_helper" class ClientApplicationTest < ActiveSupport::TestCase def test_url_valid ok = ["http://example.com/test", "https://example.com/test"] - bad = ["", "ftp://example.com/test", "myapp://somewhere"] + bad = ["", "ftp://example.com/test", "myapp://somewhere", "http://example.com\nhttp://example.net"] ok.each do |url| app = build(:client_application) @@ -20,7 +20,7 @@ class ClientApplicationTest < ActiveSupport::TestCase def test_support_url_valid ok = ["", "http://example.com/test", "https://example.com/test"] - bad = ["ftp://example.com/test", "myapp://somewhere", "gibberish"] + bad = ["ftp://example.com/test", "myapp://somewhere", "gibberish", "http://example.com\nhttp://example.net"] ok.each do |url| app = build(:client_application) @@ -37,7 +37,7 @@ class ClientApplicationTest < ActiveSupport::TestCase def test_callback_url_valid ok = ["", "http://example.com/test", "https://example.com/test", "ftp://example.com/test", "myapp://somewhere"] - bad = ["gibberish"] + bad = ["gibberish", "http://example.com\nhttp://example.net"] ok.each do |url| app = build(:client_application)