summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:50:47 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:50:47 +0000
commit4e151a472260a3ecffbf1c9fde8a6019c00c444c (patch)
tree03857a31e605058fd9d5a3def5e705f9888575e3 /test/functional/timelog_controller_test.rb
parent9ad2ca61da9d91ac0d7de999ce492bbeb3a0449c (diff)
downloadredmine-4e151a472260a3ecffbf1c9fde8a6019c00c444c.tar.gz
redmine-4e151a472260a3ecffbf1c9fde8a6019c00c444c.zip
Syntax error with ruby1.8.
git-svn-id: http://svn.redmine.org/redmine/trunk@12651 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r--test/functional/timelog_controller_test.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index f138b896b..59a950a9a 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -347,8 +347,7 @@ class TimelogControllerTest < ActionController::TestCase
assert_response 302
# check that the issues were updated
- assert_equal [9, 9, 9], TimeEntry.where(:id => [1, 2, 4])
- .collect {|i| i.activity_id}
+ assert_equal [9, 9, 9], TimeEntry.where(:id => [1, 2, 4]).collect {|i| i.activity_id}
end
def test_bulk_update_on_different_projects_without_rights
@@ -366,8 +365,7 @@ class TimelogControllerTest < ActionController::TestCase
post :bulk_update, :ids => [1, 2], :time_entry => { :custom_field_values => {'10' => '0'} }
assert_response 302
- assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2])
- .collect {|i| i.custom_value_for(10).value}
+ assert_equal ["0", "0"], TimeEntry.where(:id => [1, 2]).collect {|i| i.custom_value_for(10).value}
end
def test_post_bulk_update_should_redirect_back_using_the_back_url_parameter