fix spec
This commit is contained in:
parent
e63409d72a
commit
6be5ea92b3
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user