Patch #28494 » 28494-test.patch
| test/unit/issue_priority_test.rb | ||
|---|---|---|
| 95 | 95 |
assert_equal 'highest', IssuePriority.active.order(:position).last.position_name |
| 96 | 96 |
end |
| 97 | 97 | |
| 98 |
def test_changing_default_priority_should_update_position_names |
|
| 99 |
prio = IssuePriority.first |
|
| 100 |
prio.is_default = true |
|
| 101 |
prio.save |
|
| 102 |
assert_equal %w(default high4 high3 high2 highest), IssuePriority.active.to_a.sort.map(&:position_name) |
|
| 103 |
end |
|
| 104 | ||
| 98 | 105 |
def test_destroying_a_priority_should_update_position_names |
| 99 | 106 |
IssuePriority.find_by_position_name('highest').destroy
|
| 100 | 107 |
assert_equal %w(lowest default high2 highest), IssuePriority.active.to_a.sort.map(&:position_name) |
- « Previous
- 1
- 2
- 3
- Next »