Class: FactoryTrace::Preprocessors::ExtractDefined
- Inherits:
-
Object
- Object
- FactoryTrace::Preprocessors::ExtractDefined
- Defined in:
- lib/factory_trace/preprocessors/extract_defined.rb
Class Method Summary collapse
Class Method Details
.call ⇒ FactoryTrace::Structures::Collection
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/factory_trace/preprocessors/extract_defined.rb', line 7 def self.call collection = FactoryTrace::Structures::Collection.new MonkeyPatches::REGISTER.traits.each do |trait| collection.add(FactoryTrace::Helpers::Converter.trait(trait)) end FactoryBot.factories.each do |factory| collection.add(FactoryTrace::Helpers::Converter.factory(factory)) end collection end |