Upgrade ruby and rails in the test environment

https://www.pivotaltracker.com/story/show/70181972