Class: FactoryTrace::StorageHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/factory_trace/storage_handler.rb

Class Method Summary collapse

Class Method Details

.prepare(initial_data) ⇒ Array<Hash>

First hash - all factories Second hash - used factories

Parameters:

  • initial_data (Hash<Symbol, Set<Symbol>>)

Returns:

  • (Array<Hash>)


11
12
13
# File 'lib/factory_trace/storage_handler.rb', line 11

def self.prepare(initial_data)
  [collect_all, convert(initial_data)]
end