diff options
author | Go MAEDA <maeda@farend.jp> | 2020-02-11 04:56:03 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-02-11 04:56:03 +0000 |
commit | 39c979b3419c02967b6f68f9d99198fb64d9e30e (patch) | |
tree | 00226b2f6ef790d56b0c341cbd64e4c209ddd13d /test/functional/projects_controller_test.rb | |
parent | 89c4e1680766e1e5a3a11a857f17852cab3c2437 (diff) | |
download | redmine-39c979b3419c02967b6f68f9d99198fb64d9e30e.tar.gz redmine-39c979b3419c02967b6f68f9d99198fb64d9e30e.zip |
Reverts r19510 that breaks IssueTest#test_closed_on_should_be_set_when_closing_an_open_issue (#5354).
git-svn-id: http://svn.redmine.org/redmine/trunk@19511 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index a49e609ce..6be670566 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -994,30 +994,6 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_equal ['documents', 'issue_tracking', 'repository'], Project.find(1).enabled_module_names.sort end - def test_update_custom_field_should_update_updated_on - @request.session[:user_id] = 2 - project = Project.find(1) - project.update_attribute :updated_on, nil - assert_equal 'Stable', project.custom_value_for(3).value - - travel_to Time.current do - post( - :update, - :params => { - :id => 1, - :project => { - :custom_field_values => {'3' => 'Alpha'} - } - } - ) - assert_redirected_to '/projects/ecookbook/settings' - assert_equal 'Successful update.', flash[:notice] - project.reload - assert_equal 'Alpha', project.custom_value_for(3).value - assert_equal Time.current, project.updated_on - end - end - def test_destroy_leaf_project_without_confirmation_should_show_confirmation @request.session[:user_id] = 1 # admin |