diff options
| author | hukl <contact@smyck.org> | 2009-03-01 13:56:24 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-01 13:56:24 +0100 |
| commit | c7757522c2750675fab6c4324453e237b863d84c (patch) | |
| tree | 3cc50a7f8e5c5ab9dbad1957863422a772dddf14 /test/functional | |
| parent | 62db596a0807059afe321930c2015b30f8b0e6d9 (diff) | |
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.
Diffstat (limited to 'test/functional')
| -rw-r--r-- | test/functional/nodes_controller_test.rb | 19 |
1 files changed, 16 insertions, 3 deletions
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 @@ | |||
| 1 | require 'test_helper' | 1 | require 'test_helper' |
| 2 | 2 | ||
| 3 | class NodesControllerTest < ActionController::TestCase | 3 | class NodesControllerTest < ActionController::TestCase |
| 4 | # Replace this with your real tests. | 4 | |
| 5 | test "the truth" do | 5 | include AuthenticatedTestHelper |
| 6 | assert true | 6 | |
| 7 | def test_get_index | ||
| 8 | login_as :quentin | ||
| 9 | get :index | ||
| 10 | assert_response :success | ||
| 11 | end | ||
| 12 | |||
| 13 | def test_update_a_draft | ||
| 14 | test_node = Node.create! :slug => "test_node" | ||
| 15 | test_node.move_to_child_of Node.root | ||
| 16 | |||
| 17 | login_as :quentin | ||
| 18 | |||
| 19 | |||
| 7 | end | 20 | end |
| 8 | end | 21 | end |
