Method: CemSpecHelper::ResourceDataSpec#synthetic_resource_data

Defined in:
lib/cem_spec_helper/resource_data_spec.rb

#synthetic_resource_data(as_objects: false) ⇒ Array<Hash>, Array<Resource>

Shortcut method for loading synthetic resource data

Parameters:

  • as_objects (Boolean) (defaults to: false)

    Whether or not to return the resource data as objects or hashes

Returns:

  • (Array<Hash>)

    An array of hashes containing the resource data

  • (Array<Resource>)

    An array of Resource objects



115
116
117
# File 'lib/cem_spec_helper/resource_data_spec.rb', line 115

def synthetic_resource_data(as_objects: false)
  load_resource_data(SYNTHETIC_DATA_ROOT, 'test_resource_data', as_objects: as_objects)
end