Method: FactoryBot::Syntax::Methods#create_pair

Defined in:
lib/factory_bot/syntax/methods.rb

#create_pair(name, *traits_and_overrides, &block) ⇒ Array

(see #strategy_method_pair)

Returns:

  • (Array)

    pair of created objects defined by the factory



# File 'lib/factory_bot/syntax/methods.rb', line 74