diff options
Diffstat (limited to 'test/unit/node_test.rb')
| -rw-r--r-- | test/unit/node_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/node_test.rb b/test/unit/node_test.rb index e054887..ef298bb 100644 --- a/test/unit/node_test.rb +++ b/test/unit/node_test.rb | |||
| @@ -5,7 +5,11 @@ class NodeTest < ActiveSupport::TestCase | |||
| 5 | def setup | 5 | def setup |
| 6 | @root = Node.find(1) | 6 | @root = Node.find(1) |
| 7 | @first_child = Node.find(2) | 7 | @first_child = Node.find(2) |
| 8 | @first_child.pages.create! :title => "one" | ||
| 9 | @first_child.draft = @first_child.pages.last | ||
| 10 | @first_child.save | ||
| 8 | @second_child = Node.find(3) | 11 | @second_child = Node.find(3) |
| 12 | @second_child.pages.create! :title => "one" | ||
| 9 | 13 | ||
| 10 | @user1 = User.create :login => 'demo', :email => "f@b.com", :password => 'foobar', :password_confirmation => 'foobar' | 14 | @user1 = User.create :login => 'demo', :email => "f@b.com", :password => 'foobar', :password_confirmation => 'foobar' |
| 11 | @user2 = User.create :login => 'show', :email => "f@b.com", :password => 'foobar', :password_confirmation => 'foobar' | 15 | @user2 = User.create :login => 'show', :email => "f@b.com", :password => 'foobar', :password_confirmation => 'foobar' |
