Updates for Rails 4

* Fixed rspec "mock" deprecation warning
* Fixed spec route matches - removed deprecated 'match' method.