summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-03-01 14:03:12 +0100
committerhukl <contact@smyck.org>2009-03-01 14:03:12 +0100
commit02fc7b48da2944f1f46360d939c95bb2d4ba94d2 (patch)
tree4415f8f749d3916188e03ddd5a12419cca34c9b2
parent527cbcca7cbddab7286b6f4a060912b1ddd7d5e0 (diff)
simple functional test for the NodesController#update method
-rw-r--r--test/functional/nodes_controller_test.rb4
1 files changed, 3 insertions, 1 deletions
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
15 test_node.move_to_child_of Node.root 15 test_node.move_to_child_of Node.root
16 16
17 login_as :quentin 17 login_as :quentin
18 put :update, :id => test_node.id, :page => {:title => "Hello", :body => "There"}
18 19
19 20 assert_equal "Hello", test_node.draft.title
21 assert_equal "There", test_node.draft.body
20 end 22 end
21end 23end