diff options
| author | hukl <contact@smyck.org> | 2009-10-17 23:31:28 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-10-17 23:31:28 +0200 |
| commit | c7c4b007621fd28c88b65db5fd3296ef730097d9 (patch) | |
| tree | 6ccce73ace9fdecab09a2ae3b7eb6fd1b799b96b /test/functional/content_controller_test.rb | |
| parent | 07fc4a257f0f4c12a9dd9acd2e9926afb0d48c45 (diff) | |
added some more validations to ensure data integrity and applied necessary changes on tests
Diffstat (limited to 'test/functional/content_controller_test.rb')
| -rw-r--r-- | test/functional/content_controller_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/functional/content_controller_test.rb b/test/functional/content_controller_test.rb index b76e1d5..4fb3035 100644 --- a/test/functional/content_controller_test.rb +++ b/test/functional/content_controller_test.rb | |||
| @@ -94,8 +94,7 @@ class ContentControllerTest < ActionController::TestCase | |||
| 94 | protected | 94 | protected |
| 95 | 95 | ||
| 96 | def create_node_under_root slug | 96 | def create_node_under_root slug |
| 97 | node = Node.create! :slug => slug | 97 | node = Node.root.children.create! :slug => slug |
| 98 | node.move_to_child_of Node.root | ||
| 99 | node | 98 | node |
| 100 | end | 99 | end |
| 101 | 100 | ||
