module RSpec::Rails::Matchers::RoutingMatchers

def be_routable

expect(:put => "/yet/another/path").to be_routable
expect(:post => "/another/path").to be_routable
expect(:get => "/a/path").to be_routable
You can use route helpers provided by rspec-rails.

@example

`RouteSet#recognize_path`.
the declarations in `config/routes.rb`. Delegates to
Passes if the route expression is recognized by the Rails router based on
def be_routable
  BeRoutableMatcher.new(self)
end