36 lines
1.1 KiB
Ruby
36 lines
1.1 KiB
Ruby
FactoryGirl.define do
|
|
|
|
factory :campaign do
|
|
# clientid 720
|
|
sequence(:billingcode) { |x| "billingcode#{x}" }
|
|
sequence(:listingcode) { |x| "listingcode#{x}" }
|
|
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
|
|
after(:build) do |campaign, evaluator|
|
|
video = FactoryGirl.create(:videolisting)
|
|
campaign.videolistings << video
|
|
end
|
|
|
|
end
|
|
end
|