summaryrefslogtreecommitdiffstats
path: root/test/functional/enumerations_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-17 18:18:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-05-17 18:18:06 +0000
commitc90bf645f51383ffb7bf2e3427b3e4c4672580f3 (patch)
treebd00abdec57cf27c334eea3e61539cbd11680441 /test/functional/enumerations_controller_test.rb
parentd6789593597694e78c4b2c5f40fe63cef3c48002 (diff)
downloadredmine-c90bf645f51383ffb7bf2e3427b3e4c4672580f3.tar.gz
redmine-c90bf645f51383ffb7bf2e3427b3e4c4672580f3.zip
Fixed that submitting the form without selecting a value may raise raises an error with SQLServer (#13783).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11854 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/enumerations_controller_test.rb')
-rw-r--r--test/functional/enumerations_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 1986f4731..8e18ea194 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -126,4 +126,11 @@ class EnumerationsControllerTest < ActionController::TestCase
# check that the issue was reassign
assert_equal 6, issue.reload.priority_id
end
+
+ def test_destroy_enumeration_in_use_with_blank_reassignment
+ assert_no_difference 'IssuePriority.count' do
+ delete :destroy, :id => 4, :reassign_to_id => ''
+ end
+ assert_response :success
+ end
end