##// END OF EJS Templates
Rails4: replace deprecated Relation#update_all at ProjectEnumerationsControllerTest...
Toshi MARUYAMA -
r12357:6e8d8da1f3a2
parent child
Show More
@@ -212,7 +212,8 class ProjectEnumerationsControllerTest < ActionController::TestCase
212 212 :active => true
213 213 })
214 214 assert project_activity.save
215 assert TimeEntry.update_all("activity_id = '#{project_activity.id}'", ["project_id = ? AND activity_id = ?", 1, 9])
215 assert TimeEntry.where(["project_id = ? AND activity_id = ?", 1, 9]).
216 update_all("activity_id = '#{project_activity.id}'")
216 217 assert_equal 3, TimeEntry.where(:activity_id => project_activity.id,
217 218 :project_id => 1).count
218 219 delete :destroy, :project_id => 1
General Comments 0
You need to be logged in to leave comments. Login now