Module: FactoryBot::With::Methods

Includes:
Syntax::Methods
Defined in:
lib/factory_bot/with/methods.rb

Overview

A FactoryBot::Syntax::Methods replacement to enable factory_bot-with features.

Constant Summary collapse

BUILD_STRATEGIES =
%i[build build_stubbed create attributes_for with].freeze
VARIATIONS =
{
  unit: BUILD_STRATEGIES.to_h { [_1, _1] }.freeze,
  pair: BUILD_STRATEGIES.to_h { [_1, :"#{_1}_pair"] }.freeze,
  list: BUILD_STRATEGIES.to_h { [_1, :"#{_1}_list"] }.freeze,
}.freeze