Sha256: 272f0d3db0de398748e03955c2d969f0c35e5fc164c224517c67871ec8ef8846
Contents?: true
Size: 356 Bytes
Versions: 2
Compression:
Stored size: 356 Bytes
Contents
# # This will guess the User class # FactoryGirl.define do # factory :user do # first_name "John" # last_name "Doe" # admin false # end # # # This will use the User class (Admin would have been guessed) # factory :admin, class: User do # first_name "Admin" # last_name "User" # admin true # end # end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bently-1.0.2 | lib/bently/template/factory-girl-rails/factories.rb |
bently-1.0.1 | lib/bently/template/factory-girl-rails/factories.rb |