Fix the test failures

This commit is contained in:
Sasi Olin 2022-03-30 12:39:01 +02:00
parent 50e876dd6f
commit e85ecede4c
29 changed files with 232 additions and 232 deletions

View file

@ -17,10 +17,10 @@ describe Survey do
end
describe '#active?' do
it { expect(survey_active.active?).to eq true }
it { expect(survey_inactive.active?).to eq false }
it { expect(survey_active.active?).to be true }
it { expect(survey_inactive.active?).to be false }
it 'returns true, if both start_date and end_date are not set' do
expect(create(:survey, start_date: nil, end_date: nil, surveyable: create(:conference)).active?).to eq true
expect(create(:survey, start_date: nil, end_date: nil, surveyable: create(:conference)).active?).to be true
end
end
end