Converted RSpec infrastructure to Rails 4