2016-07-08 13:27:42 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
|
|
describe EventSchedule do
|
|
|
|
|
|
|
|
|
|
describe 'association' do
|
|
|
|
|
it { should belong_to(:schedule) }
|
|
|
|
|
it { should belong_to(:event) }
|
|
|
|
|
it { should belong_to(:room) }
|
|
|
|
|
end
|
2016-07-26 16:20:31 +02:00
|
|
|
|
|
|
|
|
describe 'validation' do
|
|
|
|
|
it { is_expected.to validate_presence_of(:schedule) }
|
|
|
|
|
it { is_expected.to validate_presence_of(:event) }
|
|
|
|
|
it { is_expected.to validate_presence_of(:room) }
|
|
|
|
|
it { is_expected.to validate_presence_of(:start_time) }
|
|
|
|
|
end
|
2016-07-08 13:27:42 +02:00
|
|
|
end
|