Add mass import of commercials

Fix #1055
This commit is contained in:
Stella Rouzi 2017-01-11 16:45:58 +02:00
parent efb12b02e8
commit 32fa0bde6b
6 changed files with 97 additions and 29 deletions

View file

@ -2,7 +2,7 @@
FactoryGirl.define do
factory :commercial do
url 'https://www.youtube.com/watch?v=BTTygyxuGj8'
sequence(:url) { |n| "https://www.youtube.com/watch?v=BTTygyxuGj#{n}" }
factory :conference_commercial do
association :commercialable, factory: :conference