##// END OF EJS Templates
Adds an assertion on issues deletion when deleting a project (#5381)....
Jean-Philippe Lang -
r3579:eabe8c51cd9b
parent child
Show More
@@ -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.find(:all, :conditions => ['project_id = ?', @ecookbook.id]).empty?
151 assert Board.find(:all, :conditions => ['project_id = ?', @ecookbook.id]).empty?
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