@@ -326,7 +326,7 class TimelogControllerTest < ActionController::TestCase | |||
|
326 | 326 | |
|
327 | 327 | assert_response 302 |
|
328 | 328 | # check that the issues were updated |
|
329 |
assert_equal [9, 9], TimeEntry. |
|
|
329 | assert_equal [9, 9], TimeEntry.where(:id => [1, 2]).collect {|i| i.activity_id} | |
|
330 | 330 | end |
|
331 | 331 | |
|
332 | 332 | def test_bulk_update_with_failure |
@@ -347,7 +347,8 class TimelogControllerTest < ActionController::TestCase | |||
|
347 | 347 | |
|
348 | 348 | assert_response 302 |
|
349 | 349 | # check that the issues were updated |
|
350 |
assert_equal [9, 9, 9], TimeEntry. |
|
|
350 | assert_equal [9, 9, 9], TimeEntry.where(:id => [1, 2, 4]) | |
|
351 | .collect {|i| i.activity_id} | |
|
351 | 352 | end |
|
352 | 353 | |
|
353 | 354 | def test_bulk_update_on_different_projects_without_rights |
@@ -365,7 +366,8 class TimelogControllerTest < ActionController::TestCase | |||
|
365 | 366 | post :bulk_update, :ids => [1, 2], :time_entry => { :custom_field_values => {'10' => '0'} } |
|
366 | 367 | |
|
367 | 368 | assert_response 302 |
|
368 | assert_equal ["0", "0"], TimeEntry.find_all_by_id([1, 2]).collect {|i| i.custom_value_for(10).value} | |
|
369 | assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2]) | |
|
370 | .collect {|i| i.custom_value_for(10).value} | |
|
369 | 371 | end |
|
370 | 372 | |
|
371 | 373 | def test_post_bulk_update_should_redirect_back_using_the_back_url_parameter |
General Comments 0
You need to be logged in to leave comments.
Login now