Revision f707101e
Added by Ondřej Ezr about 4 years ago
test/test_helper.rb | ||
---|---|---|
end
|
||
|
||
def assert_collection(expected, actual, type_name: nil)
|
||
assert expected.any?
|
||
assert expected.any?, 'The expected records array can not be empty to assert_collection'
|
||
assert_equal expected.count, actual['totalCount']
|
||
|
||
expected_global_ids = expected.map do |r|
|
Also available in: Unified diff
Fixes #29524 - association preloading in testing