Factory Bot Resources Factories and fixtures in Rails Why use Factory Bot instead of creating test data manually? How I set up Factory Bot on a fresh Rails project How to deal with complex Factory Bot associations in RSpec tests