FactoryBot: Allow all factories with any traits to be stubbed

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Problem

Sometimes, stubbing a factory project does not work (e.g. create(:project, :repository)).

Proposed solution

Implementation guides

  • Heavy use of strategy specific callbacks like before(:create) prevents from other strategies to function
  • ...
Edited by 🤖 GitLab Bot 🤖