diff options
Diffstat (limited to 'test/functional/content_controller_test.rb')
| -rw-r--r-- | test/functional/content_controller_test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/functional/content_controller_test.rb b/test/functional/content_controller_test.rb index cb6ad04..c374a83 100644 --- a/test/functional/content_controller_test.rb +++ b/test/functional/content_controller_test.rb | |||
| @@ -51,6 +51,22 @@ class ContentControllerTest < ActionController::TestCase | |||
| 51 | assert_select("h2", "two") | 51 | assert_select("h2", "two") |
| 52 | end | 52 | end |
| 53 | 53 | ||
| 54 | def test_page_containing_aggregator_with_custom_template | ||
| 55 | fill_pages_with_content | ||
| 56 | |||
| 57 | new_node = create_node_under_root "fnord" | ||
| 58 | draft = new_node.find_or_create_draft @user1 | ||
| 59 | draft.body = '<aggregate tags="update" limit="20" partial="sidebar_title_only" />' | ||
| 60 | draft.save | ||
| 61 | new_node.publish_draft! | ||
| 62 | |||
| 63 | get :render_page, :locale => 'de', :page_path => ["fnord"] | ||
| 64 | assert_response :success | ||
| 65 | |||
| 66 | assert_select(".sidebar_headline", "one") | ||
| 67 | assert_select(".sidebar_headline", "two") | ||
| 68 | end | ||
| 69 | |||
| 54 | 70 | ||
| 55 | 71 | ||
| 56 | protected | 72 | protected |
