@@ -106,8 +106,8 class WikiPageTest < ActiveSupport::TestCase | |||||
106 | page.destroy |
|
106 | page.destroy | |
107 | assert_nil WikiPage.find_by_id(1) |
|
107 | assert_nil WikiPage.find_by_id(1) | |
108 | # make sure that page content and its history are deleted |
|
108 | # make sure that page content and its history are deleted | |
109 |
assert WikiContent. |
|
109 | assert_equal 0, WikiContent.where(:page_id => 1).count | |
110 |
assert WikiContent.versioned_class. |
|
110 | assert_equal 0, WikiContent.versioned_class.where(:page_id => 1).count | |
111 | end |
|
111 | end | |
112 |
|
112 | |||
113 | def test_destroy_should_not_nullify_children |
|
113 | def test_destroy_should_not_nullify_children |
General Comments 0
You need to be logged in to leave comments.
Login now