Sha256: 6f99090aa7a95d76d94ebec5880742e255ad97441cff7700b9479333deb67b13

Contents?: true

Size: 884 Bytes

Versions: 9

Compression:

Stored size: 884 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

Factory.define :comment do |f|
  f.body 'test comment'
  f.user {|a| a.association(:user)}
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
muck-activities-0.1.8 test/rails_root/test/factories.rb
muck-activities-0.1.9 test/rails_root/test/factories.rb
muck-activities-0.1.10 test/rails_root/test/factories.rb
muck-activities-0.1.11 test/rails_root/test/factories.rb
muck-activities-0.1.12 test/rails_root/test/factories.rb
muck-activities-0.1.13 test/rails_root/test/factories.rb
muck-activities-0.1.14 test/rails_root/test/factories.rb
muck-activities-0.1.15 test/rails_root/test/factories.rb
muck-activities-0.1.16 test/rails_root/test/factories.rb