mirror of
https://github.com/plausible/analytics.git
synced 2024-11-26 23:27:54 +03:00
Add [Action required] to over limit email
This commit is contained in:
parent
d547d0f996
commit
ec2a4a1a65
@ -119,7 +119,7 @@ defmodule PlausibleWeb.Email do
|
|||||||
base_email()
|
base_email()
|
||||||
|> to(user)
|
|> to(user)
|
||||||
|> tag("over-limit")
|
|> tag("over-limit")
|
||||||
|> subject("You have outgrown your Plausible subscription tier")
|
|> subject("[Action required] You have outgrown your Plausible subscription tier")
|
||||||
|> render("over_limit.html", %{
|
|> render("over_limit.html", %{
|
||||||
user: user,
|
user: user,
|
||||||
usage: usage,
|
usage: usage,
|
||||||
|
@ -69,7 +69,7 @@ defmodule Plausible.Workers.CheckUsageTest do
|
|||||||
|
|
||||||
assert_email_delivered_with(
|
assert_email_delivered_with(
|
||||||
to: [user],
|
to: [user],
|
||||||
subject: "You have outgrown your Plausible subscription tier"
|
subject: "[Action required] You have outgrown your Plausible subscription tier"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert Repo.reload(user).grace_period_end == Timex.shift(Timex.today(), days: 7)
|
assert Repo.reload(user).grace_period_end == Timex.shift(Timex.today(), days: 7)
|
||||||
@ -156,7 +156,7 @@ defmodule Plausible.Workers.CheckUsageTest do
|
|||||||
|
|
||||||
assert_email_delivered_with(
|
assert_email_delivered_with(
|
||||||
to: [user],
|
to: [user],
|
||||||
subject: "You have outgrown your Plausible subscription tier"
|
subject: "[Action required] You have outgrown your Plausible subscription tier"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -202,7 +202,7 @@ defmodule Plausible.Workers.CheckUsageTest do
|
|||||||
|
|
||||||
assert_email_delivered_with(
|
assert_email_delivered_with(
|
||||||
to: [user],
|
to: [user],
|
||||||
subject: "You have outgrown your Plausible subscription tier"
|
subject: "[Action required] You have outgrown your Plausible subscription tier"
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user