This commit is contained in:
Tyrel Souza 2014-04-24 14:12:08 -04:00
parent e63409d72a
commit 6be5ea92b3
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ describe CampaignsController do
flash = response.request.env["action_dispatch.request.flash_hash"][:alert]
expect(flash).not_to eq("You need to sign in or sign up before continuing.")
expect(Campaign.last.clientid).to eq campaign[:clientid]
expect(Campaign.last.listingcode).to eq campaign[:listingcode]
end
it 'creates a campaign with a nested videolisting' do

View File

@ -1,6 +1,6 @@
FactoryGirl.define do
factory :campaign do
sequence(:clientid) { |x| x }
clientid 720
sequence(:billingcode) { |x| "billingcode#{x}" }
sequence(:listingcode) { |x| "listingcode#{x}" }
address "123 Anywhere Street"