• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WordPoints / wordpoints / 334
69%
master: 53%

Build:
Build:
LAST BUILD BRANCH: 1.10.4
DEFAULT BRANCH: master
Ran 09 Mar 2015 08:04PM UTC
Jobs 1
Files 50
Run time 9s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
334

push

travis-ci

JDGrimes
Promote users to the correct rank

This simplifies the rank transitioning code, and fixes a bug where
every other rank would be skipped when a user was being promoted. This
would cause a problem when you had ranks like this:

0 points (base)
100 points
1000 points

If a points-less user was awarded, say 150 points, they would be
transitioned to the 1000 points rank. Here is how it would happen. The
maybe-increase-rank function would first check if the user could
transition to the 100 points rank. It would get the affirmative. That
is the correct behavior. Then it would proceed to check if the user
could transition to the next rank. However, it would actually check one
rank above that. Of course, in a case like this, there is no fourth
rank, so the third rank for 1000 points would be returned.

Adds unit tests.

Fixes #300

1715 of 2475 relevant lines covered (69.29%)

26.33 hits per line

Jobs
ID Job ID Ran Files Coverage
22 334.22 (TRAVISCI_RUN=phpunit WP_VERSION=latest) 09 Mar 2015 07:56PM UTC 0
69.29
Travis Job 334.22
Source Files on build 334
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #334
  • c0a21e0a on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc