diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-08-08 01:40:59 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-08-08 01:40:59 +0200 |
| commit | 5699572861085bfb0b375f44e2f35ee8eee3f8c6 (patch) | |
| tree | b03931790968f13bdd37eb9a261511ec7cd82841 /test/models/helpers/content_helper_test.rb | |
| parent | 13010fd68c1f505861e1583556570c6f25d3883a (diff) | |
Pin the disclosure partial against a silent fallback
Diffstat (limited to 'test/models/helpers/content_helper_test.rb')
| -rw-r--r-- | test/models/helpers/content_helper_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/models/helpers/content_helper_test.rb b/test/models/helpers/content_helper_test.rb index 40803633..06e264fd 100644 --- a/test/models/helpers/content_helper_test.rb +++ b/test/models/helpers/content_helper_test.rb | |||
| @@ -137,4 +137,19 @@ class ContentHelperTest < ActionView::TestCase | |||
| 137 | assert_includes out, 'title="Beispiel"' | 137 | assert_includes out, 'title="Beispiel"' |
| 138 | assert_includes out, 'data-gallery="g1"' | 138 | assert_includes out, 'data-gallery="g1"' |
| 139 | end | 139 | end |
| 140 | |||
| 141 | test "the date_and_title partial still exists and renders" do | ||
| 142 | node = Node.root.children.find_by(:slug => "disclosure") || | ||
| 143 | Node.root.children.create!(:slug => "disclosure") | ||
| 144 | entry = node.children.create!(:slug => "some_disclosure") | ||
| 145 | entry.draft.update!(:title => "Ein Fund") | ||
| 146 | entry.publish_draft! | ||
| 147 | entry.head.tag_list.add("disclosure") | ||
| 148 | entry.head.save! | ||
| 149 | |||
| 150 | html = aggregate?('[aggregate tags="disclosure" partial="date_and_title"]') | ||
| 151 | |||
| 152 | assert_includes html, "date_and_title_partial" | ||
| 153 | assert_includes html, "Ein Fund" | ||
| 154 | end | ||
| 140 | end | 155 | end |
