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