Fixes Start date being greater than End date
This commit is contained in:
parent
24f0625be1
commit
4eafa43f7e
2 changed files with 18 additions and 0 deletions
|
|
@ -1516,6 +1516,13 @@ describe Conference do
|
|||
should_not allow_value('&%§!?äÄüÜ/()').for(:short_title)
|
||||
end
|
||||
|
||||
describe 'valid_date_range?' do
|
||||
|
||||
it 'is not valid if start date is greater than end date' do
|
||||
expect(subject.start_date).to be <= subject.end_date
|
||||
end
|
||||
end
|
||||
|
||||
describe 'before create callbacks' do
|
||||
|
||||
it 'has an email setting after creation' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue