class FactoryTrace::Preprocessors::ExtractDefined
Public Class Methods
call()
click to toggle source
@return [FactoryTrace::Structures::Collection]
# File lib/factory_trace/preprocessors/extract_defined.rb, line 5 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