diff options
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 |
