spec/worksheet_spec.rb in rspreadsheet-0.4.5 vs spec/worksheet_spec.rb in rspreadsheet-0.4.7

- old
+ new

@@ -88,9 +88,11 @@ @sheet[-1,-1].should be_nil # return nil if configured to do so @sheet[0,0].should be_nil @sheet[-2,-5].should be_nil Rspreadsheet.raise_on_negative_coordinates = pom # reset the setting back + + Rspreadsheet.configuration { |config| config.raise_on_negative_coordinates.should be == pom } end it 'returns nil with negative index or raise if configured to do so' do pom = Rspreadsheet.raise_on_negative_coordinates expect { @sheet.rows(-1) }.to raise_error # default is to raise error