Feature #29894 » 29894-fix-random-test-failure.patch
| app/models/query.rb | ||
|---|---|---|
| 108 | 108 |
def value_object(object) |
| 109 | 109 |
return nil unless User.current.allowed_to?(:"view_#{object.class.name.underscore}_watchers", object.try(:project))
|
| 110 | 110 | |
| 111 |
super |
|
| 111 |
super.sorted
|
|
| 112 | 112 |
end |
| 113 | 113 |
end |
| 114 | 114 | |
| test/functional/issues_controller_test.rb | ||
|---|---|---|
| 1981 | 1981 |
) |
| 1982 | 1982 | |
| 1983 | 1983 |
assert_response :success |
| 1984 |
assert_include "\"#{User.find(1).name}\n#{User.find(3).name}\"", response.body
|
|
| 1984 |
watcher_names = User.where(id: [1, 3]).sorted.map(&:name).join("\n")
|
|
| 1985 |
assert_include "\"#{watcher_names}\"", response.body
|
|
| 1985 | 1986 |
end |
| 1986 | 1987 | |
| 1987 | 1988 |
def test_index_with_estimated_hours_total |
- « Previous
- 1
- 2
- 3
- 4
- Next »