Factory Bot

Community

Guides building robust test data with FactoryBot.

Authorbastos
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Factory Bot provides a framework for setting up Ruby objects as test data, replacing fixtures with a more flexible and maintainable approach.

Core Features & Use Cases

  • Defining factories: create reusable factories that map to models.
  • Sequences and dynamic attributes: generate unique values and computed fields.
  • Associations and traits: compose complex data graphs with transient attributes and callbacks.

Quick Start

Create a simple factory for a User and demonstrate basic build and create usage in an RSpec example.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Factory Bot
Download link: https://github.com/bastos/ruby-plugin-marketplace/archive/main.zip#factory-bot

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.