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/functional/content_controller_test.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (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 b76e1d5..4fb3035 100644 --- a/test/functional/content_controller_test.rb +++ b/test/functional/content_controller_test.rb @@ -94,8 +94,7 @@ class ContentControllerTest < ActionController::TestCase protected def create_node_under_root slug - node = Node.create! :slug => slug - node.move_to_child_of Node.root + node = Node.root.children.create! :slug => slug node end -- cgit v1.3