lib/cells/cell.rb in rubyfromexcel-0.0.4 vs lib/cells/cell.rb in rubyfromexcel-0.0.5

- old
+ new

@@ -35,10 +35,10 @@ r.to_s end def test return "== #{value}" if xml_type - "be_close(#{value.to_f},#{tolerance_for(value.to_f)})" + "be_within(#{tolerance_for(value.to_f)}).of(#{value.to_f})" end def tolerance_for(value,tolerance = 0.1, maximum = 1e-8) tolerance = value.abs * tolerance tolerance = maximum if tolerance < maximum