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

Version Path
teleporter-2.0.11 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.10 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.9 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.8 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.7 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.6 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.4 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.2 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.1 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-2.0.0 lib/generators/teleport/templates/rspec/factories/_sample.rb
teleporter-1.2.4 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.2.3 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.2.2 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.2.1 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.1.1 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.1.0 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.0.2 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.0.1 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-1.0.0 lib/generators/initial/templates/rspec/factories/_sample.rb
teleporter-0.1.0 lib/generators/initial/templates/rspec/factories/_sample.rb