Sha256: 7715fa12fd17711689af7422c616d50699b8928933dc42aa25c56c73d94e5869

Contents?: true

Size: 377 Bytes

Versions: 2

Compression:

Stored size: 377 Bytes

Contents

FactoryGirl.define do
  factory :chat do
    name 'Test chat'
  end

  factory :message do
    association :chat
    text 'Test message'
  end

  sequence :username do |i|
    "user#{i}"
  end

  factory :user do
    username { FactoryGirl.generate(:username) }
    email    { |u| "#{u.username}@example.com" }
    password 'secret'
    password_confirmation 'secret'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alondra-0.1.1 test/support/factories.rb
alondra-0.1.0 test/support/factories.rb