Update specs and sandbox app config for Rails 4