From 0a5d7806700bb3154529b99abc75d37ccc46faff Mon Sep 17 00:00:00 2001 From: erdgeist Date: Sat, 25 Jul 2026 02:23:13 +0200 Subject: Extract admin strings to i18n: the nodes cluster --- test/controllers/nodes_controller_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/controllers/nodes_controller_test.rb b/test/controllers/nodes_controller_test.rb index de536278..8b59fc37 100644 --- a/test/controllers/nodes_controller_test.rb +++ b/test/controllers/nodes_controller_test.rb @@ -438,7 +438,8 @@ class NodesControllerTest < ActionController::TestCase get :show, params: { id: node.id } assert_response :success - assert_select "a", text: "Add event" + assert_select "a", text: I18n.t("nodes.show.add_event") + assert_select "a[href*='tag_list=open-day']" assert_select "a[href*='auto_tag_source=erfa-detail']" end @@ -449,7 +450,7 @@ class NodesControllerTest < ActionController::TestCase get :show, params: { id: node.id } assert_response :success - assert_select "a", text: "Add event" + assert_select "a", text: I18n.t("nodes.show.add_event") assert_select "a[href*='tag_list=']", count: 0 end @@ -600,7 +601,7 @@ class NodesControllerTest < ActionController::TestCase assert_includes assigns(:nodes), presse_node assert_not_includes assigns(:nodes), erfa_node - assert_select "h1", "Nodes tagged: pressemitteilung" + assert_select "h1", :text => I18n.t("nodes.tags.title", :tag => "pressemitteilung"), :count => 1 assert_select "h1", :text => "Chapters", :count => 0 end -- cgit v1.3