diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-21 18:14:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-07-21 18:14:13 +0000 |
commit | 596a196f2e7e8355f102ad6b6e59e03d77230eff (patch) | |
tree | 3a35acd0d33c2ff72f7ed775827c7f7ef9c4f61e /test/functional/settings_controller_test.rb | |
parent | fcd8ace743b83c83eeffb726f26b9153d633226c (diff) | |
download | redmine-596a196f2e7e8355f102ad6b6e59e03d77230eff.tar.gz redmine-596a196f2e7e8355f102ad6b6e59e03d77230eff.zip |
Don't error if an invalid setting is given.
git-svn-id: http://svn.redmine.org/redmine/trunk@15730 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/settings_controller_test.rb')
-rw-r--r-- | test/functional/settings_controller_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb index 9af3ebca7..38e569569 100644 --- a/test/functional/settings_controller_test.rb +++ b/test/functional/settings_controller_test.rb @@ -145,6 +145,15 @@ class SettingsControllerTest < Redmine::ControllerTest ], Setting.commit_update_keywords) end + def test_post_edit_with_invalid_setting_should_not_error + post :edit, :params => { + :settings => { + :invalid_setting => '1' + } + } + assert_redirected_to '/settings' + end + def test_post_edit_should_send_security_notification_for_notified_settings ActionMailer::Base.deliveries.clear post :edit, :params => { |