mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
It's now possible to simply enter the url of the third party provider to enter a commercial.
15 lines
377 B
Ruby
15 lines
377 B
Ruby
# Read about factories at https://github.com/thoughtbot/factory_girl
|
|
|
|
FactoryGirl.define do
|
|
factory :commercial do
|
|
url 'https://www.youtube.com/watch?v=BTTygyxuGj8'
|
|
|
|
factory :conference_commercial do
|
|
association :commercialable, factory: :conference
|
|
end
|
|
|
|
factory :event_commercial do
|
|
association :commercialable, factory: :event
|
|
end
|
|
end
|
|
end
|