Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix ssh test

Uku Taht1efc68fa59c4
diff --git a/test/workers/provision_ssl_certificates_test.exs b/test/workers/provision_ssl_certificates_test.exs
index dcf2a58f7b..5f4a99692b 100644
--- a/test/workers/provision_ssl_certificates_test.exs
+++ b/test/workers/provision_ssl_certificates_test.exs
@@ -11,7 +11,7 @@ defmodule Plausible.Workers.SslCertificatesTest do
|> stub(:run, fn(_conn, _cmd) -> {:ok, "", 0} end)
ProvisionSslCertificates.perform(nil, nil, ssh_stub)
- assert_receive({SSHEx, :run, [nil, 'sudo certbot certonly --nginx -n -d custom-site.com']})
+ assert_receive({SSHEx, :run, [nil, 'sudo certbot certonly --nginx -n -d "custom-site.com"']})
end
test "sets has_ssl_certficate=true if the ssh command is succesful" do