A library for setting up Ruby objects as test data.
MIT License
Bot releases are visible (Hide)
FactoryBot.modify
docs (Matt Brictson).FactoryBot.lint
docs (Anton Dieterle).Published by mike-burns 10 months ago
Published by mike-burns 10 months ago
Published by mike-burns 10 months ago
Published by mike-burns 11 months ago
Published by mike-burns 11 months ago
Published by mike-burns 11 months ago
build_stubbed
detects a UUID primary key, generate the correct type (Peter Boling, Alexandre Ruban).Published by mike-burns about 1 year ago
did_you_mean
library (Daniel Colson).#destroyed?
within the Stub
strategy to return false
to be consistentfactory_bot.compile_factory
notification (Sean Doyle).#to_sym
(Edmund Korley, Jonas S).bundle add
(Glauco Custódio).actions/checkout
v3 (Yudai Takada).Full diff: https://github.com/thoughtbot/factory_bot/compare/v6.2.1...v6.3.0
add_attribute
with reserved keywords assigns values correctlytraits_for_enum
method to define traits for non-Active Record enumsbuild_stubbed_starting_id=
option to define the starting id for build_stubbed
FactoryBot
module meant only for internal useNoMethodError
for static attributes now offers a "Did you mean?" style messageSystemStackError
allow_class_lookup
, allow_class_lookup
=, register_trait
, trait_by_name
, traits
, sequence_by_name
, sequences
, factory_by_name
, register_factory
, callback_names
, register_callback
, register_default_callbacks
, register_default_strategies
, strategies
Published by composerinteralia over 5 years ago
Bugfix: raise "Trait not registered" error when passing invalid trait arguments
Published by hellosweta over 5 years ago