Registry / testing / thoughtbot-factory-girl

thoughtbot-factory-girl

JSON →
library1.2.2rbrubygemsunverified

factory_girl 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 thoughtbot-factory_girl
INSTALL
IMPORT
SIG · THOUGHTBOT-FACTORY
T
thoughtbot-factory-girl
testingrubyv1.2.2
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.

FactoryGirl
✓ require 'factory_girl'

Define and use a factory for creating test objects

require 'factory_girl' FactoryGirl.define do factory :user do name 'John Doe' email 'john@example.com' end end user = FactoryGirl.create(:user)
Debug
Known issues
breakingFactoryGirl has been renamed to FactoryBot in newer versions
fix
Use factory_bot gem and require 'factory_bot' instead
affects: >= 4.0.0
Upgrade
Version history
1.2.2latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
thoughtbot-factory-girl — gem install thoughtbot-factory-girl · libregistry