diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 02:23:13 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-07-25 02:23:13 +0200 |
| commit | 0a5d7806700bb3154529b99abc75d37ccc46faff (patch) | |
| tree | 16c4b705d824c83c5887ae7661928c0c4f93c2c3 /test/controllers | |
| parent | 90207029de7474082310d0725801d60f7145fa98 (diff) | |
Extract admin strings to i18n: the nodes cluster
Diffstat (limited to 'test/controllers')
| -rw-r--r-- | test/controllers/nodes_controller_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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 | |||
| 438 | 438 | ||
| 439 | get :show, params: { id: node.id } | 439 | get :show, params: { id: node.id } |
| 440 | assert_response :success | 440 | assert_response :success |
| 441 | assert_select "a", text: "Add event" | 441 | assert_select "a", text: I18n.t("nodes.show.add_event") |
| 442 | |||
| 442 | assert_select "a[href*='tag_list=open-day']" | 443 | assert_select "a[href*='tag_list=open-day']" |
| 443 | assert_select "a[href*='auto_tag_source=erfa-detail']" | 444 | assert_select "a[href*='auto_tag_source=erfa-detail']" |
| 444 | end | 445 | end |
| @@ -449,7 +450,7 @@ class NodesControllerTest < ActionController::TestCase | |||
| 449 | 450 | ||
| 450 | get :show, params: { id: node.id } | 451 | get :show, params: { id: node.id } |
| 451 | assert_response :success | 452 | assert_response :success |
| 452 | assert_select "a", text: "Add event" | 453 | assert_select "a", text: I18n.t("nodes.show.add_event") |
| 453 | assert_select "a[href*='tag_list=']", count: 0 | 454 | assert_select "a[href*='tag_list=']", count: 0 |
| 454 | end | 455 | end |
| 455 | 456 | ||
| @@ -600,7 +601,7 @@ class NodesControllerTest < ActionController::TestCase | |||
| 600 | assert_includes assigns(:nodes), presse_node | 601 | assert_includes assigns(:nodes), presse_node |
| 601 | assert_not_includes assigns(:nodes), erfa_node | 602 | assert_not_includes assigns(:nodes), erfa_node |
| 602 | 603 | ||
| 603 | assert_select "h1", "Nodes tagged: pressemitteilung" | 604 | assert_select "h1", :text => I18n.t("nodes.tags.title", :tag => "pressemitteilung"), :count => 1 |
| 604 | assert_select "h1", :text => "Chapters", :count => 0 | 605 | assert_select "h1", :text => "Chapters", :count => 0 |
| 605 | end | 606 | end |
| 606 | 607 | ||
