mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-08 16:41:31 +00:00
Adds a test for #26564.
Patch by Toshi MARUYAMA. git-svn-id: http://svn.redmine.org/redmine/trunk@16919 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
569cd8d620
commit
b996c36315
@ -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 => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user