From c7c4b007621fd28c88b65db5fd3296ef730097d9 Mon Sep 17 00:00:00 2001 From: hukl Date: Sat, 17 Oct 2009 23:31:28 +0200 Subject: added some more validations to ensure data integrity and applied necessary changes on tests --- test/unit/event_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/unit/event_test.rb') diff --git a/test/unit/event_test.rb b/test/unit/event_test.rb index 78e082c..f310af8 100644 --- a/test/unit/event_test.rb +++ b/test/unit/event_test.rb @@ -4,8 +4,7 @@ class EventTest < ActiveSupport::TestCase def setup Page.delete_all - @cal_node = Node.create :slug => "calendar" - @cal_node.move_to_child_of Node.root + @cal_node = Node.root.children.create! :slug => "calendar" @draft = @cal_node.find_or_create_draft User.first @draft.title = "99C3" @draft.abstract = "The 99th Chaos Comunication Congress" -- cgit v1.3