Float Rails to the latest version

Also fixes a Mocha error in some permutations.

Closes #685.