Fix controller route lookup for Rails 4.2

Rails-4.2 splits named_routes.helpers to path_helpers and url_helpers.
And add route_defined? method to NamedRouteCollection.
Merge pull request #1142 from joker1007/adapt_named_route_helpers_split

Fix controller spec fails on edge Rails