mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Tests for the new associations and models
Tests for the schedule versioning new associations and models
This commit is contained in:
parent
c047ffd699
commit
e7a30302ff
9 changed files with 66 additions and 17 deletions
9
spec/models/schedule_spec.rb
Normal file
9
spec/models/schedule_spec.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Schedule do
|
||||
|
||||
describe 'association' do
|
||||
it { should belong_to(:program) }
|
||||
it { should have_many(:event_schedules).dependent(:destroy) }
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue