Sha256: 87b30372debfb957926521cc1435e787178825c07c08d66d0aeb92afe4748bf1
Contents?: true
Size: 560 Bytes
Versions: 10
Compression:
Stored size: 560 Bytes
Contents
module SharedSideloadedDataParsingExamples def test_adapter_sideloaded_data_parsing VCR.use_cassette(plural_name + '_sideloaded') do collection = adapter.where(limit: 5, _include: children.join(",")) children.each do |child| child_adapter = @client.adapter_for(child.singularize.classify) identity_map = child_adapter.instance_variable_get(:@identity_map) child_collection = collection.flat_map { |record| record.send(child) } assert_equal child_collection, identity_map.values end end end end
Version data entries
10 entries across 10 versions & 1 rubygems