vidpush/spec/factories/campaigns.rb

36 lines
1.1 KiB
Ruby
Raw Normal View History

2014-04-07 18:41:34 +00:00
FactoryGirl.define do
2014-04-24 20:33:48 +00:00
2014-04-07 18:41:34 +00:00
factory :campaign do
2014-04-24 21:13:39 +00:00
# clientid 720
sequence(:billingcode) { |x| "billingcode#{x}" }
sequence(:listingcode) { |x| "listingcode#{x}" }
2014-04-21 15:28:45 +00:00
address "123 Anywhere Street"
advertisername "Bob's BBQ"
awards "Best in BBQ"
background "Bob started in Memphis"
businessphone "5555551000"
categories "Food, BBQ, Southern California, Restaurant, Cooking"
city "Some City"
companycolors "Brown, Red"
contactphone "5555551212"
customerfirstname "Bob"
customerlastname "De Bbq"
description "Bob's BBQ is the best BBQ in the Some City area of Southern Cali"
emailaddress "bob@bobsbbq.com"
facebookurl "facebook.com/bobsbbq"
productsandservices "BBQ, Catering, Parties, Lunch, Dinner"
state "CA"
targetaudience "Anyone with teeth"
tollfreephone "8005551212"
vpa "John Smith"
websiteurl "bobsbbq.com"
zip "90200"
processed false
2014-04-24 20:33:48 +00:00
after(:build) do |campaign, evaluator|
video = FactoryGirl.create(:videolisting)
campaign.videolistings << video
end
2014-04-07 18:41:34 +00:00
end
end