summaryrefslogtreecommitdiff
path: root/test/unit
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/unit
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/unit')
-rw-r--r--test/unit/node_test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/unit/node_test.rb b/test/unit/node_test.rb
index 5325daa..a0fee7f 100644
--- a/test/unit/node_test.rb
+++ b/test/unit/node_test.rb
@@ -36,6 +36,9 @@ class NodeTest < ActiveSupport::TestCase
36 foo.pages.create :title => "Version 2" 36 foo.pages.create :title => "Version 2"
37 foo.pages.create :title => "Version 3" 37 foo.pages.create :title => "Version 3"
38 38
39 foo.head = foo.pages.last
40 foo.save!
41
39 page = Node.find_page("updates/2008/foo") 42 page = Node.find_page("updates/2008/foo")
40 assert_equal page, foo.pages.find_by_revision(3) 43 assert_equal page, foo.pages.find_by_revision(3)
41 end 44 end