Tutorial by Examples

If you have a ActiveRecord User class with name and email attributes, you could create a factory for it by making the FactoryGirl guess it: FactoryGirl.define do factory :user do # it will guess the User class name "John" email "[email protected]" end end ...

Page 1 of 1