Sha256: 3c8c53166c66435d09dfcf6d3f5a681e24b68f36be46da8b500d74b5a8a8ec4f

Contents?: true

Size: 1.31 KB

Versions: 27

Compression:

Stored size: 1.31 KB

Contents

Factory.sequence :status_id do |n|
  "1432#{n}".to_i
end

Factory.define :tweet do |t|
    t.text "Someting to tweet about"
    t.from_user "aplusk"
    t.status_id {Factory.next(:status_id)}       
end

Factory.define :retweet1_tweet, :parent => :tweet do |t|
    t.text "RT @username blah blah blah"
end

Factory.define :retweet2_tweet, :parent => :tweet do |t|
    t.text "Someting to tweet about RT @username blah blah blah"
end

Factory.define :mention_tweet, :parent => :tweet do |t|
    t.text "Someting to @username tweet about"  
end

Factory.define :reply_tweet, :parent => :tweet do |t|
    t.text "@username Someting to tweet about"    
end

Factory.define :double_mention_tweet, :parent => :tweet do |t|
    t.text "Someting @username1 to @username2 tweet about" 
end

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

Factory.sequence :twitter_id do |n|
  "11#{n}".to_i
end

Factory.define :twitter_account do |tw|
    tw.screen_name {Factory.next(:screen_name)}
    tw.twitter_id {Factory.next(:twitter_id)}
end


Factory.define :tweet_reaction do |tr|
   tr.reaction {Factory.create(:reaction)}
   tr.tweet {Factory.create(:tweet)}
   tr.responder {Factory.create(:twitter_account)}
   tr.initiator {Factory.create(:twitter_account)}
end

Factory.define :reaction do |r|
   r.reaction_type "at mention"
   r.value 0.6
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
pork_sandwich-0.4.23 test/factories.rb
pork_sandwich-0.4.22 test/factories.rb
pork_sandwich-0.4.21 test/factories.rb
pork_sandwich-0.4.20 test/factories.rb
pork_sandwich-0.4.19 test/factories.rb
pork_sandwich-0.4.18 test/factories.rb
pork_sandwich-0.4.17 test/factories.rb
pork_sandwich-0.4.16 test/factories.rb
pork_sandwich-0.4.15 test/factories.rb
pork_sandwich-0.4.14 test/factories.rb
pork_sandwich-0.4.13 test/factories.rb
pork_sandwich-0.4.12 test/factories.rb
pork_sandwich-0.4.11 test/factories.rb
pork_sandwich-0.4.10 test/factories.rb
pork_sandwich-0.4.9 test/factories.rb
pork_sandwich-0.4.8 test/factories.rb
pork_sandwich-0.4.7 test/factories.rb
pork_sandwich-0.4.6 test/factories.rb
pork_sandwich-0.4.5 test/factories.rb
pork_sandwich-0.4.4 test/factories.rb