module RSpec::Rails::Matchers::RoutingMatchers
def be_routable
- Example: You can use route helpers provided by rspec-rails. -
def be_routable BeRoutableMatcher.new(self) end
def route_to(*expected)
- See: http://api.rubyonrails.org/classes/ActionDispatch/Assertions/RoutingAssertions.html#method-i-assert_recognizes -
def route_to(*expected) RouteToMatcher.new(self, *expected) end