factory_bot v5.0.0 Release Notes

Release Date: 2019-02-01 // almost 3 years ago
    • โž• Added: Verbose option to include full backtraces in the linting output
    • Changed: use_parent_strategy now defaults to true, so by default the build strategy will build, rather than create associations
    • ๐Ÿ”„ Changed: Passing a block when defining associations now raises an error
    • Bugfix: use_parent_strategy is no longer reset by FactoryBot.reload
    • ๐Ÿ›  Bugfix: rewind_sequences will now rewind local sequences along with the global ones
    • ๐Ÿ›  Bugfix: the build_stubbed strategy now sets timestamps without changing the original behavior of the timestamp methods
    • ๐Ÿ›  Bugfix: avoid a stack error when referring to an "attributes" attribute in initialize_with
    • โœ‚ Removed: support for EOL versions of Ruby and Rails
    • โœ‚ Removed: static attributes (use dynamic attributes with a block instead)
    • โœ‚ Removed: looking up factories by class
    • โœ‚ Removed: ignore method (use transient instead)
    • Removed: duplicate_attribute_assignment_from_initialize_with configuration option
    • Deprecated: allow_class_lookup configuration option