Sha256: f5b8bd2dac7009fa3eb2ac48b938a8ca4b597076dda4df4e40bbf6d05296fed5

Contents?: true

Size: 788 Bytes

Versions: 7

Compression:

Stored size: 788 Bytes

Contents

Factory.sequence :email do |n|
  "somebody#{n}@example.com"
end

Factory.sequence :login do |n|
  "inquire#{n}"
end

Factory.sequence :name do |n|
  "a_name#{n}"
end

Factory.sequence :abbr do |n|
  "abbr#{n}"
end

Factory.sequence :description do |n|
  "This is the description: #{n}"
end

Factory.define :user do |f|
  f.login { Factory.next(:login) }
  f.email { Factory.next(:email) }
  f.password 'inquire_pass'
  f.password_confirmation 'inquire_pass'
  f.first_name 'test'
  f.last_name 'guy'
  f.terms_of_service true
  f.activated_at DateTime.now
end

Factory.define :activity do |f|
  f.item {|a| a.association(:user)}
  f.template ''
  f.source {|a| a.association(:user)}
  f.content ''
  f.title ''
  f.is_status_update false
  f.is_public true
  f.created_at DateTime.now
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
muck-activity-0.1.1 test/factories.rb
muck-activity-0.1.2 test/factories.rb
muck-activity-0.1.3 test/factories.rb
muck-activity-0.1.4 test/factories.rb
muck-activity-0.1.5 test/factories.rb
muck-activity-0.1.6 test/factories.rb
muck-activities-0.1.7 test/factories.rb