spec/edtf/date_spec.rb in edtf-0.0.9 vs spec/edtf/date_spec.rb in edtf-1.0.0
- old
+ new
@@ -95,10 +95,10 @@
end
describe '#next' do
it 'returns the successor when given no argument' do
- Date.edtf('1999').next.year.should == 2000
+ Date.edtf('1999').next[0].year.should == 2000
end
it 'returns an array of the next 3 elements when passed 3 as an argument' do
Date.edtf('1999').next(3).map(&:year) == [2000, 2001, 2002]
end
\ No newline at end of file