mirror of
https://github.com/plausible/analytics.git
synced 2024-12-25 02:24:55 +03:00
117eef000d
* Bump deps * Bump stack * Fix deprecation warnings * Fix VCR cassettes mismatch due to OTP-18414 Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com> * Format & fix flaky tests * Handle raw IPv4 hostnames; test public suffix TLD * Configure locus db cache_dir So that maxmind unavailability doesn't affect application startup. PERSISTENT_CACHE_DIR env var is used to point locus at the GeoIP DB file. * WIP: Remove ExVCR * Fix test env config * Fixup exvcr * Remove exvcr from deps * Add convert script * Remove exvcr cassettes * Remove convert script * Rename test * Update moduledoc * Update dockerfile * Bump CI cache * Tag more slow tests, why not? * Use charlist for locus cache option * Pin nodejs * Merge google tests, make them async --------- Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
17 lines
442 B
Elixir
17 lines
442 B
Elixir
defmodule PlausibleWeb.ErrorViewTest do
|
|
use PlausibleWeb.ConnCase, async: false
|
|
|
|
test "renders 500.html", %{conn: conn} do
|
|
conn = get(conn, "/test")
|
|
layout = Application.get_env(:plausible, PlausibleWeb.Endpoint)[:render_errors][:layout]
|
|
|
|
error_html =
|
|
Phoenix.View.render_to_string(PlausibleWeb.ErrorView, "500.html",
|
|
conn: conn,
|
|
layout: layout
|
|
)
|
|
|
|
refute error_html =~ "data-domain="
|
|
end
|
|
end
|