Sha256: 88943b9cb02626e494d650da45b72b2e4c8f49956576b6df37567db15784184e
Contents?: true
Size: 528 Bytes
Versions: 24
Compression:
Stored size: 528 Bytes
Contents
#FactoryGirl.define do # factory :user do # first_name "John" # sequence(:title) { |n| "Title #{n}" } # date_of_birth { 21.years.ago } # email { "#{first_name}.#{last_name}@example.com".downcase } # end # # factory :admin, class: User do # first_name "Admin" # end # # factory :post do # user # association :author, factory: :user, last_name: "Writely" # # trait :with_comments do # after(:create) do |post| # create_list :comment, 2, todo_item: post # end # end # end # #end
Version data entries
24 entries across 24 versions & 1 rubygems