Skip to content

Update factory_bot_rails

Jan Meizner requested to merge update-factory-bot into master

This update cames with one bug fix: when user is build and factory defines related object than related objects are not saved to DB. This lead to spec errors in our test suit because in the AccessPolicy validation were added into e.g. access_method_id field instead of access_method relation.

What is more some validation were duplicated. This is a case for belongs_to related object. By default all these objects are mandatory and presence validation is added there by default.

Merge request reports