summaryrefslogtreecommitdiffstats
path: root/test/functional/enumerations_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-30 16:31:12 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-30 16:31:12 +0000
commitb996c36315312512bea0ef1359909a06493a52e8 (patch)
treef28888c6d751452c1824691f35febd460d59ade6 /test/functional/enumerations_controller_test.rb
parent569cd8d620b59824e4c7a4ea13926dace49262bf (diff)
downloadredmine-b996c36315312512bea0ef1359909a06493a52e8.tar.gz
redmine-b996c36315312512bea0ef1359909a06493a52e8.zip
Adds a test for #26564.
Patch by Toshi MARUYAMA. git-svn-id: http://svn.redmine.org/redmine/trunk@16919 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/enumerations_controller_test.rb')
-rw-r--r--test/functional/enumerations_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 6b157a4e8..1e0b75fb5 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -124,6 +124,18 @@ class EnumerationsControllerTest < Redmine::ControllerTest
assert_select_error /name cannot be blank/i
end
+ def test_update_position
+ assert_equal 2, Enumeration.find(2).position
+ put :update, :params => {
+ :id => 2,
+ :enumeration => {
+ :position => 1,
+ }
+ }
+ assert_response 302
+ assert_equal 1, Enumeration.find(2).position
+ end
+
def test_destroy_enumeration_not_in_use
assert_difference 'IssuePriority.count', -1 do
delete :destroy, :params => {