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

Related skills

More from bastos/ruby-plugin-marketplace

Installs
GitHub Stars
2
First Seen