stravid/slotcars — pull request #184 by DominikGuzei (2012-05-24 12:16:27+00:00)
Title: fixes user highscores bug, sorts them by rank and improves specs

This PR seemed to be small but revealed a bug with user highscores: If the user had multiple runs on a track the highscores would include the best one multiple times (thus -> so many highscores listed in production :wink:)

So it fixes this bug first. Then it also refactors the highscores method completely into small and understandable (and well tested) methods that work together!