Defect #30474 ยป fix-30474.diff
| test/fixtures/issues.yml (working copy) | ||
|---|---|---|
|
status_id: 1
|
||
|
start_date: <%= 1.day.ago.to_date.to_s(:db) %>
|
||
|
due_date: <%= 10.day.from_now.to_date.to_s(:db) %>
|
||
|
estimated_hours: 200.0
|
||
|
root_id: 1
|
||
|
lft: 1
|
||
|
rgt: 2
|
||
| ... | ... | |
|
start_date: <%= 2.day.ago.to_date.to_s(:db) %>
|
||
|
due_date:
|
||
|
root_id: 2
|
||
|
estimated_hours: 0.5
|
||
|
lft: 1
|
||
|
rgt: 2
|
||
|
lock_version: 3
|
||
| ... | ... | |
|
status_id: 1
|
||
|
start_date: <%= 15.day.ago.to_date.to_s(:db) %>
|
||
|
due_date: <%= 5.day.ago.to_date.to_s(:db) %>
|
||
|
estimated_hours: 1.0
|
||
|
root_id: 3
|
||
|
lft: 1
|
||
|
rgt: 2
|
||
| ... | ... | |
|
assigned_to_id:
|
||
|
author_id: 2
|
||
|
status_id: 1
|
||
|
estimated_hours: 2.0
|
||
|
root_id: 5
|
||
|
lft: 1
|
||
|
rgt: 2
|
||
| test/functional/issues_controller_test.rb (working copy) | ||
|---|---|---|
|
}
|
||
|
assert_response :success
|
||
|
hours = issues_in_list.map(&:total_estimated_hours)
|
||
|
# Removes nil because the position of NULL is database dependent
|
||
|
hours.compact!
|
||
|
assert_equal hours.sort.reverse, hours
|
||
|
end
|
||