From c7757522c2750675fab6c4324453e237b863d84c Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Mar 2009 13:56:24 +0100 Subject: refactored drafts which are now identified by a draft_id on the node rather than by guessing it. i was really that close to make that mistake again. --- test/functional/nodes_controller_test.rb | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'test/functional/nodes_controller_test.rb') diff --git a/test/functional/nodes_controller_test.rb b/test/functional/nodes_controller_test.rb index d6d579d..85f151a 100644 --- a/test/functional/nodes_controller_test.rb +++ b/test/functional/nodes_controller_test.rb @@ -1,8 +1,21 @@ require 'test_helper' class NodesControllerTest < ActionController::TestCase - # Replace this with your real tests. - test "the truth" do - assert true + + include AuthenticatedTestHelper + + def test_get_index + login_as :quentin + get :index + assert_response :success + end + + def test_update_a_draft + test_node = Node.create! :slug => "test_node" + test_node.move_to_child_of Node.root + + login_as :quentin + + end end -- cgit v1.3