diff options
| author | hukl <contact@smyck.org> | 2009-02-28 13:34:23 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-02-28 13:34:23 +0100 |
| commit | bd9067272e1bd5a8651c5b9fa66881782406c54c (patch) | |
| tree | cb9bb1961ab4b376636eb6b3e76312991b125c89 /test | |
| parent | cc74db30d930b0eaaf0ac29b19ddd452ea0c1462 (diff) | |
added custom partials to aggregators, added test and refactored some methods
Diffstat (limited to 'test')
| -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 |
