Sha256: 498371d3a9ae4ac67505cddbc47b19bb94eb235fc21a689b938151dbd12ec157

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

Factory.define :chat do |f|
  f.name 'Test chat'
end

Factory.define :message do |f|
  f.association :chat
  f.text 'Test message'
end

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

Factory.define :user do |f|
  f.username { Factory.next(:username) }
  f.email    { |u| "#{u.username}@example.com" }
  f.password 'secret'
  f.password_confirmation 'secret'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
alondra-0.0.4 test/support/factories.rb
alondra-0.0.3 test/support/factories.rb