diff options
| author | hukl <contact@smyck.org> | 2009-03-09 00:01:33 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-03-09 00:01:33 +0100 |
| commit | 55bc7e53f260bda99fd007d3422b264e1f4f6124 (patch) | |
| tree | fac61cda3fd551cf1d480201fdca86527f465b57 /test | |
| parent | af0b1e4b39b9c160747143a830c3884b064edd86 (diff) | |
after creating a node, edit it rather than showing it
Diffstat (limited to 'test')
| -rw-r--r-- | test/functional/nodes_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/nodes_controller_test.rb b/test/functional/nodes_controller_test.rb index fdeb6cb..edc49b6 100644 --- a/test/functional/nodes_controller_test.rb +++ b/test/functional/nodes_controller_test.rb | |||
| @@ -19,7 +19,7 @@ class NodesControllerTest < ActionController::TestCase | |||
| 19 | def test_create | 19 | def test_create |
| 20 | login_as :quentin | 20 | login_as :quentin |
| 21 | post :create, :node => {:slug => 'foobar'}, :parent_id => Node.root.id | 21 | post :create, :node => {:slug => 'foobar'}, :parent_id => Node.root.id |
| 22 | assert_redirected_to node_path(Node.last) | 22 | assert_redirected_to edit_node_path(Node.last) |
| 23 | end | 23 | end |
| 24 | 24 | ||
| 25 | def test_editing_a_node | 25 | def test_editing_a_node |
