move rails definitions into own test file so that it can be shared between unit and acceptance tests
upgrade some gems