factory_bot

A library for setting up Ruby objects as test data.

MIT License

Downloads
236.9M
Stars
7.9K
Committers
282

Bot releases are hidden (Show)

factory_bot - v5.0.0

Published by composerinteralia over 5 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
factory_bot - v5.0.0.rc2

Published by composerinteralia almost 6 years ago

  • Set use_parent_strategy default to true for all versions of Rails
  • Add missing *_pair documentation
factory_bot - v5.0.0.rc1

Published by composerinteralia almost 6 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
factory_bot - v4.11.1

Published by composerinteralia about 6 years ago

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

factory_bot - v4.11.0

Published by composerinteralia about 6 years ago

  • 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