diff options
Diffstat (limited to 'test/models/node_test.rb')
| -rw-r--r-- | test/models/node_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/models/node_test.rb b/test/models/node_test.rb index 2953f8f..bdf556d 100644 --- a/test/models/node_test.rb +++ b/test/models/node_test.rb | |||
| @@ -339,6 +339,9 @@ class NodeTest < ActiveSupport::TestCase | |||
| 339 | assert_equal head_revision, node.head.revision | 339 | assert_equal head_revision, node.head.revision |
| 340 | assert_nil node.autosave | 340 | assert_nil node.autosave |
| 341 | assert_equal 2, node.pages.count | 341 | assert_equal 2, node.pages.count |
| 342 | assert_equal node.head.user, node.draft.user | ||
| 343 | assert_equal @user1, node.draft.editor | ||
| 344 | assert_equal node.head.published_at, node.draft.published_at | ||
| 342 | end | 345 | end |
| 343 | 346 | ||
| 344 | test "autosave!, save_draft!, and lock_for_editing! raise LockedByAnotherUser for a second user" do | 347 | test "autosave!, save_draft!, and lock_for_editing! raise LockedByAnotherUser for a second user" do |
