feat: Improve handling of association name config
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon 2026-05-07 12:13:45 +02:00
parent 605a897045
commit 2443bc62ac
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
9 changed files with 179 additions and 4 deletions

View file

@ -0,0 +1,26 @@
defmodule MvWeb.LayoutsTest do
use MvWeb.ConnCase, async: false
import Phoenix.LiveViewTest
alias Mv.Membership
alias MvWeb.Layouts
describe "app/1" do
test "prefers provided club_name over settings fallback" do
{:ok, settings} = Membership.get_settings()
{:ok, _} = Membership.update_settings(settings, %{club_name: "Settings Club Name"})
html =
render_component(&Layouts.app/1, %{
flash: %{},
current_user: nil,
club_name: "Provided Club Name",
inner_block: [%{inner_block: fn _, _ -> "content" end}]
})
assert html =~ "Provided Club Name"
refute html =~ "Settings Club Name"
end
end
end