Has a valid factory test for event schedule
Has a valid factory test introduced for event schedule
This commit is contained in:
parent
c469f4f415
commit
13bcee485e
1 changed files with 4 additions and 0 deletions
|
|
@ -9,6 +9,10 @@ describe EventSchedule do
|
|||
end
|
||||
|
||||
describe 'validation' do
|
||||
it 'has a valid factory' do
|
||||
expect(build(:event_schedule)).to be_valid
|
||||
end
|
||||
|
||||
it { is_expected.to validate_presence_of(:schedule) }
|
||||
it { is_expected.to validate_presence_of(:event) }
|
||||
it { is_expected.to validate_presence_of(:room) }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue