spec/worksheet_spec.rb in rspreadsheet-0.1.0 vs spec/worksheet_spec.rb in rspreadsheet-0.1.1
- old
+ new
@@ -45,6 +45,11 @@
@sheet.name = 'Icecream'
@sheet.name.should == 'Icecream'
@sheet.name = 'Cofee'
@sheet.name.should == 'Cofee'
end
+ it 'out of range indexes return nil value' do
+ @sheet[-1,-1].should == nil
+ @sheet[0,0].should == nil
+ @sheet[999,999].should == nil
+ end
end
\ No newline at end of file