spec/calendars/gregorian_spec.rb in timeboss-0.2.4 vs spec/calendars/gregorian_spec.rb in timeboss-0.2.5

- old
+ new

@@ -473,13 +473,12 @@ expect(date).to be_a TimeBoss::Calendar::Day expect(date.start_date).to eq Date.parse('2017-04-08') expect(date.end_date).to eq Date.parse('2017-04-08') end - it 'gives you this year if you give it nothing' do - year = subject.this_year - expect(subject.parse(nil)).to eq year - expect(subject.parse('')).to eq year + it 'gives you nothing if you give it nothing' do + expect(subject.parse(nil)).to be nil + expect(subject.parse('')).to be nil end end context 'expressions' do it 'can parse waypoints' do