Sha256: ff3c680f608f326dedc8b9b5b44a32ccc58218fb9b4fcdc607d1ac9f394fdda0

Contents?: true

Size: 359 Bytes

Versions: 1

Compression:

Stored size: 359 Bytes

Contents

FactoryGirl.define do

  factory :user do
    sequence(:username) { |n| "user#{n}" }
  end

  factory :post do
    title "Post Title"
    body "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
    user
  end

  factory :comment do
    user
    post
    body "This is a comment"
  end

  factory :activity, :class => 'ChooChoo::Activity' do
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
choo_choo-0.0.1 spec/factories.rb