factory-bot

Installation
SKILL.md

Factory Bot

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

Setup

# Gemfile
group :development, :test do
  gem "factory_bot_rails"
end

# spec/rails_helper.rb
RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods
end

Basic Factories

Installs
1
GitHub Stars
3
First Seen
6 days ago
factory-bot — bastos/ruby-plugin-marketplace