Defect #28409 » tests.patch
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 6574 | 6574 |
end |
| 6575 | 6575 |
end |
| 6576 | 6576 |
end |
| 6577 | ||
| 6578 |
def test_show_should_display_total_estimated_hours_even_if_estimated_hours_field_is_disabled |
|
| 6579 |
issue = Issue.find(1) |
|
| 6580 |
tracker = issue.tracker |
|
| 6581 |
tracker.core_fields = Tracker::CORE_FIELDS - ['estimated_hours'] |
|
| 6582 |
tracker.save! |
|
| 6583 |
assert issue.disabled_core_fields.include?('estimated_hours')
|
|
| 6584 |
assert issue.total_estimated_hours.blank? |
|
| 6585 | ||
| 6586 |
get :show, :params => {
|
|
| 6587 |
:id => issue.id |
|
| 6588 |
} |
|
| 6589 |
assert_select "div.estimated-hours.attribute div.value", false |
|
| 6590 | ||
| 6591 |
Issue.create!(:project_id => 1, :author_id => 1, :tracker_id => 2, :parent_issue_id => issue.id, :subject => 'Child Issue', :estimated_hours => 4.50) |
|
| 6592 |
issue.reload |
|
| 6593 |
assert_not issue.total_estimated_hours.blank? |
|
| 6594 | ||
| 6595 |
get :show, :params => {
|
|
| 6596 |
:id => issue.id |
|
| 6597 |
} |
|
| 6598 |
assert_select "div.estimated-hours.attribute div.value", true, :text => /4.50/ |
|
| 6599 |
end |
|
| 6577 | 6600 |
end |
- « Previous
- 1
- 2
- 3
- Next »