summaryrefslogtreecommitdiff
path: root/test/functional/content_controller_test.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-02-06 21:48:41 +0100
committerhukl <hukl@eight.local>2009-02-07 12:25:31 +0100
commitce9645d0092d42c7bf8781378181ffbd4ff3d088 (patch)
treee569a73ac2db2b36b2e90835260c46bcf0d479fa /test/functional/content_controller_test.rb
parent79002c688d4fe6bf058459af84986a0d70dde758 (diff)
added head id to node model which points to the
head of the nodes pages collection. modified tests, importer etc renamed flags to tags
Diffstat (limited to 'test/functional/content_controller_test.rb')
-rw-r--r--test/functional/content_controller_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/content_controller_test.rb b/test/functional/content_controller_test.rb
index baf46b9..93cbbb4 100644
--- a/test/functional/content_controller_test.rb
+++ b/test/functional/content_controller_test.rb
@@ -15,7 +15,9 @@ class ContentControllerTest < ActionController::TestCase
15 def test_rendering_a_page 15 def test_rendering_a_page
16 assert Node.valid? 16 assert Node.valid?
17 assert_not_nil first_child = Node.find_by_slug("first_child") 17 assert_not_nil first_child = Node.find_by_slug("first_child")
18 first_child.pages.create :title => "First Child" 18 page = first_child.pages.create :title => "First Child"
19 first_child.head = page
20 first_child.save!
19 21
20 get :render_page, :language => 'de', :page_path => ["first_child"] 22 get :render_page, :language => 'de', :page_path => ["first_child"]
21 assert_response :success 23 assert_response :success