@@ -147,8 +147,9 class ProjectTest < ActiveSupport::TestCase | |||
|
147 | 147 | # make sure that the project non longer exists |
|
148 | 148 | assert_raise(ActiveRecord::RecordNotFound) { Project.find(@ecookbook.id) } |
|
149 | 149 | # make sure related data was removed |
|
150 |
assert Member.fi |
|
|
151 |
assert Board.fi |
|
|
150 | assert_nil Member.first(:conditions => {:project_id => @ecookbook.id}) | |
|
151 | assert_nil Board.first(:conditions => {:project_id => @ecookbook.id}) | |
|
152 | assert_nil Issue.first(:conditions => {:project_id => @ecookbook.id}) | |
|
152 | 153 | end |
|
153 | 154 | |
|
154 | 155 | def test_move_an_orphan_project_to_a_root_project |
General Comments 0
You need to be logged in to leave comments.
Login now