diff options
Diffstat (limited to 'test/test_helper.rb')
| -rw-r--r-- | test/test_helper.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index d438bb5..c494c68 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb | |||
| @@ -63,6 +63,8 @@ class ActiveSupport::TestCase | |||
| 63 | end | 63 | end |
| 64 | 64 | ||
| 65 | def create_node_with_draft | 65 | def create_node_with_draft |
| 66 | Node.root.children.create :slug => "test_node" | 66 | node = Node.root.children.create! :slug => "test_node" |
| 67 | node.reload | ||
| 68 | node | ||
| 67 | end | 69 | end |
| 68 | end | 70 | end |
