mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
- Only use JS for the drag&drop functionality and to the set/alter the time and rooms of the EventSchedule object. - Introduce has_many :events, through: :event_schedules association to get unscheduled event easily
10 lines
250 B
Ruby
10 lines
250 B
Ruby
require 'spec_helper'
|
|
|
|
describe Schedule do
|
|
|
|
describe 'association' do
|
|
it { should belong_to(:program) }
|
|
it { should have_many(:event_schedules).dependent(:destroy) }
|
|
it { should have_many(:events).through(:event_schedules) }
|
|
end
|
|
end
|