Registry / testing / factory-bot

factory-bot

JSON →
library6.6.0rbrubygemsunverified

factory_bot provides a framework and DSL for defining and using factories - less error-prone, more explicit, and all-around easier to work with than fixtures.

gem install factory_bot
INSTALL
IMPORT
SIG · FACTORY-BOT
F
factory-bot
testingrubyv6.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

FactoryBot
require 'factory_bot'

Define and create a factory

require 'factory_bot' FactoryBot.define do factory :user do name { 'John' } end end user = FactoryBot.create(:user)
Debug
Known issues

No known issues recorded.

Upgrade
Version history
6.6.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Resources
factory-bot — gem install factory-bot · libregistry