8b92946b54
The percent_complete method returns a value of 100 when a ZeroDivisionError occurs. That seems like a very strange default for an error case, and results in a bug when a milestone has no corresponding issues (new, empty milestones show 100% completion). This commit changes the rescue value to 0, and subsequently fixes #1656, which reported this problem. |
||
---|---|---|
.. | ||
controllers | ||
factories | ||
features | ||
finders | ||
fixtures | ||
helpers | ||
javascripts | ||
lib | ||
mailers | ||
models | ||
requests/api | ||
routing | ||
services | ||
support | ||
tasks/gitlab | ||
workers | ||
factories.rb | ||
factories_spec.rb | ||
spec_helper.rb |