Commit 026b54df authored by jplang's avatar jplang

Adds a test for #26564.

Patch by Toshi MARUYAMA.

git-svn-id: https://svn.redmine.org/redmine/trunk@16919 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 7859a92f
......@@ -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 => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment