Project

General

Profile

Feature #29894 » 29894-fix-random-test-failure.patch

Go MAEDA, 2024-05-02 11:59

View differences:

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
(4-4/4)