Learn Factory Bot

What's in the course

How to set up a Rails project with Factory Bot

See exactly how to set up your Rails apps for testing, including how to define some of your first Factory Bot factories.

How to understand Factory Bot's DSL syntax

Factory Bot code uses a lot of "magic". But in this course we'll see that it's not magic, it's just the power of Ruby.

How to keep your factories clean and DRY

Discover how to use traits, nested factories, callbacks and transient attributes in order to keep your factories tidy and free of duplication.

How to deal with complex test data setup

Learn how to initialize the data that your tests need without creating a mess.

Get notified when Learn Factory Bot is open to students

Learn Factory Bot is not ready yet. Enter your email address below to get notified when the course is ready.


What's the format?

Videos, plus an ebook with exercises.

What if I buy it and I don’t like it? Do I get my money back?

Yes. I offer a 100% no-questions-asked money-back guarantee.

About the Author

I'm Jason Swett. I'm a developer, speaker, trainer, author and host of The Rails with Jason Podcast.

I've taught programming classes and given tech talks all over the US and the world, including conferences like RailsConf, RubyConf India and RubyHACK. My corporate teaching clients have included Deloitte, VMware, Liberty Mutual and HP.

I've spoken or taught in the US, India, Nigeria, Bulgaria and the Netherlands.