Releases: thoughtbot/factory_bot
Releases · thoughtbot/factory_bot
v5.0.1
- Bugfix: Do not raise error when two sequences have the same name
in two traits that have the same name
v5.0.0
- 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
v5.0.0.rc2
- Set
use_parent_strategy
default to true for all versions of Rails - Add missing *_pair documentation
v5.0.0.rc1
- 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
v4.11.1
Documentation: Include .yardopts in the gem to fix broken RubyDoc links
v4.11.0
- Bugfix: Do not raise error for valid build_stubbed methods: decrement, increment, and toggle
- Bugfix: Do not add timestamps with build_stubbed for objects that shouldn't have timestamps
- Deprecate static attributes