First pass at refactoring this repetitive code
Upgrade ruby version
Creates Rails app, WIP of moving test into Rails