diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-09 05:53:40 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-04-09 05:53:40 +0000 |
commit | c03f54af45764f62385fa07d1aab2f4831f525fa (patch) | |
tree | b8c45ac87d96a0abe4ce5aa82d029b743afee4e1 /test/functional | |
parent | 1f2150e839fd1fb5ad6a8390775d39cf49e7a1ac (diff) | |
download | redmine-c03f54af45764f62385fa07d1aab2f4831f525fa.tar.gz redmine-c03f54af45764f62385fa07d1aab2f4831f525fa.zip |
Merged r15290 (#5156).
git-svn-id: http://svn.redmine.org/redmine/branches/3.2-stable@15308 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/issues_controller_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 5c77e52b1..92ee15c21 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -4000,6 +4000,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 |