summaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/nodes_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/nodes_controller_test.rb b/test/functional/nodes_controller_test.rb
index 801f2c0..3293f42 100644
--- a/test/functional/nodes_controller_test.rb
+++ b/test/functional/nodes_controller_test.rb
@@ -25,14 +25,14 @@ class NodesControllerTest < ActionController::TestCase
25 post( 25 post(
26 :create, 26 :create,
27 :kind => "generic", 27 :kind => "generic",
28 :parent_id => Node.first.id, 28 :parent_id => Node.root.id,
29 :title => "Hello Spaceboy" 29 :title => "Hello Spaceboy"
30 ) 30 )
31 end 31 end
32 32
33 assert_response :redirect 33 assert_response :redirect
34 assert_equal "hello-spaceboy", Node.last.slug 34 assert_equal "hello-spaceboy", Node.last.slug
35 assert_equal Node.last.parent_id, Node.first.id 35 assert_equal Node.last.parent_id, Node.root.id
36 assert_equal 1, Node.last.level 36 assert_equal 1, Node.last.level
37 end 37 end
38 38