From bd9067272e1bd5a8651c5b9fa66881782406c54c Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 28 Feb 2009 13:34:23 +0100 Subject: added custom partials to aggregators, added test and refactored some methods --- test/functional/content_controller_test.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'test/functional/content_controller_test.rb') 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 assert_select("h2", "two") end + def test_page_containing_aggregator_with_custom_template + fill_pages_with_content + + new_node = create_node_under_root "fnord" + draft = new_node.find_or_create_draft @user1 + draft.body = '' + draft.save + new_node.publish_draft! + + get :render_page, :locale => 'de', :page_path => ["fnord"] + assert_response :success + + assert_select(".sidebar_headline", "one") + assert_select(".sidebar_headline", "two") + end + protected -- cgit v1.3