summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-03 11:48:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-04-03 11:48:07 +0000
commit33720d5fbe75c351f916996add96cd33ff34a1c5 (patch)
tree1c3fac3eae09b0a1cafd9cbc1798f0b4c712e5b7 /test/functional
parent3e1d2c09243b1f61edcc232138db29abc3be7579 (diff)
downloadredmine-33720d5fbe75c351f916996add96cd33ff34a1c5.tar.gz
redmine-33720d5fbe75c351f916996add96cd33ff34a1c5.zip
Bulk edit form lacks estimated time field (#5156).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@15290 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/issues_controller_test.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 5cb9f8730..3021d0f42 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -4032,6 +4032,15 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal [1, 3], parent.children.collect(&:id).sort
end
+ def test_bulk_update_estimated_hours
+ @request.session[:user_id] = 2
+ post :bulk_update, :ids => [1, 2], :issue => {:estimated_hours => 4.25}
+
+ assert_redirected_to :controller => 'issues', :action => 'index', :project_id => 'ecookbook'
+ assert_equal 4.25, Issue.find(1).estimated_hours
+ assert_equal 4.25, Issue.find(2).estimated_hours
+ end
+
def test_bulk_update_custom_field
@request.session[:user_id] = 2
# update issues priority