标签: ruby-on-rails rspec factory-bot
我找到了很好的解决方案,其中包含factory_girl扩展名: Using factory_girl in Rails with associations that have unique constraints. Getting duplicate errors
现在,如何在所有工厂中使用共享上下文扩展所有具有相同lambda /函数的工厂?