Defect #26564 » issue-26564-test-v2.diff
| test/functional/enumerations_controller_test.rb | ||
|---|---|---|
| 124 | 124 |
assert_select_error /name cannot be blank/i |
| 125 | 125 |
end |
| 126 | 126 | |
| 127 |
def test_update_position |
|
| 128 |
assert_equal 2, Enumeration.find(2).position |
|
| 129 |
put :update, :params => {
|
|
| 130 |
:id => 2, |
|
| 131 |
:enumeration => {
|
|
| 132 |
:position => 1, |
|
| 133 |
} |
|
| 134 |
} |
|
| 135 |
assert_response 302 |
|
| 136 |
assert_equal 1, Enumeration.find(2).position |
|
| 137 |
end |
|
| 138 | ||
| 127 | 139 |
def test_destroy_enumeration_not_in_use |
| 128 | 140 |
assert_difference 'IssuePriority.count', -1 do |
| 129 | 141 |
delete :destroy, :params => {
|
- « Previous
- 1
- 2
- Next »