Fixes Start date being greater than End date

This commit is contained in:
chinmaydd 2016-01-21 00:26:37 +05:30
parent 24f0625be1
commit 4eafa43f7e
2 changed files with 18 additions and 0 deletions

View file

@ -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