Add test for webhook URL with trailing whitespace
Currently fails because URI.parse rejects URLs with trailing spaces.
This commit is contained in:
@@ -35,6 +35,10 @@ class WebhookTest < ActiveSupport::TestCase
|
||||
|
||||
webhook = Webhook.new name: "HTTPS", board: boards(:writebook), url: "https://example.com/webhook"
|
||||
assert webhook.valid?
|
||||
|
||||
webhook = Webhook.new name: "TRAILING SPACE", board: boards(:writebook), url: "https://example.com/webhook "
|
||||
assert webhook.valid?
|
||||
assert_equal "https://example.com/webhook", webhook.url
|
||||
end
|
||||
|
||||
test "deactivate" do
|
||||
|
||||
Reference in New Issue
Block a user