@@ -347,8 +347,7 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.where(:id => [1, 2, 4]) | |
|
351 | .collect {|i| i.activity_id} | |
|
350 | assert_equal [9, 9, 9], TimeEntry.where(:id => [1, 2, 4]).collect {|i| i.activity_id} | |
|
352 | 351 | end |
|
353 | 352 | |
|
354 | 353 | def test_bulk_update_on_different_projects_without_rights |
@@ -366,8 +365,7 class TimelogControllerTest < ActionController::TestCase | |||
|
366 | 365 | post :bulk_update, :ids => [1, 2], :time_entry => { :custom_field_values => {'10' => '0'} } |
|
367 | 366 | |
|
368 | 367 | assert_response 302 |
|
369 | assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2]) | |
|
370 | .collect {|i| i.custom_value_for(10).value} | |
|
368 | assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2]).collect {|i| i.custom_value_for(10).value} | |
|
371 | 369 | end |
|
372 | 370 | |
|
373 | 371 | 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