master
branch, which is no
longer used and does not receive any updates. Please view this file on the
main
branch
for up-to-date information.
factory_bot_rails versioning is synced with factory_bot releases. For this reason there might not be any notable changes in new versions of this project.
- Changed: factory_bot dependency to ~> 6.2.0
- Changed: factory_bot dependency to ~> 6.1.0
- Fixed: generate a plural factory name when the --force-plural flag is provided
- Changed: factory_bot dependency to ~> 6.0.0
- Removed:
"factory_bot.register_reloader"
initializer, now registering the reloader after application initialization - Removed: support for EOL versions of Ruby (2.3, 2.4) and Rails (4.2)
- Changed: factory_bot dependency to ~> 5.2.0
- Fixed: Ensure definitions do not load before I18n is initialized
- Changed: factory_bot dependency to ~> 5.1.0
- Bugfix: Reload factory_bot whenever the application changes to avoid holding onto stale object references
- Bugfix: Avoid watching project root when no factory definitions exist
- Bugfix: Avoid watching files and directories that don't exist (to avoid a file watching bug in Rails rails/rails#32700)
- Added: calling reload! in the Rails console will reload any factory definition files that have changed
- Added: support for custom generator templates
- Added:
definition_file_paths
configuration option, making it easier to place factories in custom locations - Changed: namespaced models are now generated inside a directory matching the namespace
- Changed: added newline between factories generated into the same file
- Removed: support for EOL version of Ruby and Rails
- Update generator to use dynamic attributes instead of deprecated static attributes
- No notable changes
- No notable changes
- Rename factory_girl_rails to factory_bot_rails
- No notable changes
- No notable changes
- Improved README
- Support Spring
- Fix bug when configuring FG and RSpec fixture directory
- Remove debugging
- Require factory_girl_rails explicitly in generator
- Add appraisal and get test suite working reliably with turn gem
- Support MiniTest
- Allow a custom directory for factories to be specified