summaryrefslogtreecommitdiff
path: root/spec/models/commit_spec.rb
diff options
context:
space:
mode:
authorJonah Bishop <git@borngeek.com>2015-05-26 14:44:04 -0400
committerJonah Bishop <git@borngeek.com>2015-05-26 14:57:53 -0400
commit8b92946b5407be42caa1e32a978555b94465905c (patch)
tree046a16247090838a6b2ab365f3d5961b2a7983ad /spec/models/commit_spec.rb
parentb5ea355078589f5002e3601333130350f1a37678 (diff)
downloadgitlab-ce-8b92946b5407be42caa1e32a978555b94465905c.tar.gz
Change percent_complete rescue value from 100 to 0
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.
Diffstat (limited to 'spec/models/commit_spec.rb')
0 files changed, 0 insertions, 0 deletions