spec/calendar/day_spec.rb in timeboss-0.0.9 vs spec/calendar/day_spec.rb in timeboss-0.0.10

- old
+ new

@@ -22,10 +22,10 @@ it 'can stringify itself' do expect(subject.to_s).to eq subject.name end describe '#index' do - before(:each) { allow(calendar).to receive(:year_for).with(start_date).and_return double(start_date: start_date - 3) } + before(:each) { allow(subject).to receive(:year).and_return double(start_date: start_date - 3) } it 'gets its index within the year' do expect(subject.index).to eq 4 end end