Module: FactoryBot::Strategy
- Defined in:
- lib/factory_bot/strategy.rb,
lib/factory_bot/strategy/null.rb,
lib/factory_bot/strategy/stub.rb,
lib/factory_bot/strategy/build.rb,
lib/factory_bot/strategy/create.rb,
lib/factory_bot/strategy/attributes_for.rb
Defined Under Namespace
Classes: AttributesFor, Build, Create, Null, Stub
Class Method Summary collapse
Class Method Details
.lookup_strategy(name_or_object) ⇒ Object
9 10 11 12 13 |
# File 'lib/factory_bot/strategy.rb', line 9 def self.lookup_strategy(name_or_object) return name_or_object if name_or_object.is_a?(Class) FactoryBot::Internal.strategy_by_name(name_or_object) end |