Sha256: 5ac7c05f9eb6f63d4221352e6178bb98858062d0551f5b160787ea31d39653d0
Contents?: true
Size: 556 Bytes
Versions: 1
Compression:
Stored size: 556 Bytes
Contents
# Because FactoryBot 6.4.6 has a bug where it is not properly # requiring active support, active supporot must be required first, # then factory bot. When 6.4.7 is released, this can be removed. See Gemfile require "active_support" require "factory_bot" require "faker" class Brut::FactoryBot def setup! Faker::Config.locale = :en FactoryBot.definition_file_paths = [ Brut.container.app_specs_dir / "factories" ] FactoryBot.define do to_create { |instance| instance.save } end FactoryBot.find_definitions end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brut-0.0.1 | lib/brut/factory_bot.rb |