Skip to content

Releases: thoughtbot/factory_bot

v5.0.0

01 Feb 01:16
v5.0.0
806ec9f
Compare
Choose a tag to compare
  • 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

11 Jan 20:21
v5.0.0.rc2
515af01
Compare
Choose a tag to compare
v5.0.0.rc2 Pre-release
Pre-release
  • Set use_parent_strategy default to true for all versions of Rails
  • Add missing *_pair documentation

v5.0.0.rc1

06 Jan 03:07
v5.0.0.rc1
e3c65b1
Compare
Choose a tag to compare
v5.0.0.rc1 Pre-release
Pre-release
  • 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

07 Sep 20:39
v4.11.1
Compare
Choose a tag to compare

Documentation: Include .yardopts in the gem to fix broken RubyDoc links

v4.11.0

16 Aug 11:47
v4.11.0
Compare
Choose a tag to compare
  • 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