Module: Munificent::Factories

Defined in:
lib/munificent/factories.rb

Class Method Summary collapse

Class Method Details

.define(name) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/munificent/factories.rb', line 5

def self.define(name, &)
  FactoryBot.define do
    with_namespace(:Munificent, require_prefix: false) do
      factory(name, &)
    end
  end
end