@@ -212,7 +212,8 class ProjectEnumerationsControllerTest < ActionController::TestCase | |||||
212 | :active => true |
|
212 | :active => true | |
213 | }) |
|
213 | }) | |
214 | assert project_activity.save |
|
214 | assert project_activity.save | |
215 |
assert TimeEntry. |
|
215 | assert TimeEntry.where(["project_id = ? AND activity_id = ?", 1, 9]). | |
|
216 | update_all("activity_id = '#{project_activity.id}'") | |||
216 | assert_equal 3, TimeEntry.where(:activity_id => project_activity.id, |
|
217 | assert_equal 3, TimeEntry.where(:activity_id => project_activity.id, | |
217 | :project_id => 1).count |
|
218 | :project_id => 1).count | |
218 | delete :destroy, :project_id => 1 |
|
219 | delete :destroy, :project_id => 1 |
General Comments 0
You need to be logged in to leave comments.
Login now