From 02fc7b48da2944f1f46360d939c95bb2d4ba94d2 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Mar 2009 14:03:12 +0100 Subject: simple functional test for the NodesController#update method --- test/functional/nodes_controller_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/functional/nodes_controller_test.rb b/test/functional/nodes_controller_test.rb index 85f151a..98e694e 100644 --- a/test/functional/nodes_controller_test.rb +++ b/test/functional/nodes_controller_test.rb @@ -15,7 +15,9 @@ class NodesControllerTest < ActionController::TestCase test_node.move_to_child_of Node.root login_as :quentin + put :update, :id => test_node.id, :page => {:title => "Hello", :body => "There"} - + assert_equal "Hello", test_node.draft.title + assert_equal "There", test_node.draft.body end end -- cgit v1.3