mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-16 05:04:03 +00:00
Add contactable to tracks
Added social media fields to track submission form by using a polymorphic association with the Contact Model.
This commit is contained in:
parent
770a63e15c
commit
465976bc60
7 changed files with 31 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ describe TracksController do
|
|||
let(:conference) { create(:conference) }
|
||||
let!(:regular_track) { create(:track, program: conference.program) }
|
||||
let!(:self_organized_track) { create(:track, :self_organized, program: conference.program, submitter: user, name: 'My awesome track', color: '#800080') }
|
||||
let!(:contact) { create(:contact, contactable_type: 'Track', contactable_id: self_organized_track.id) }
|
||||
|
||||
before :each do
|
||||
sign_in(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue