class RSpec::Rails::Matchers::RoutingMatchers::BeRoutableMatcher
@private
def description
def description "be routable" end
def failure_message
def failure_message "expected #{@actual.inspect} to be routable" end
def failure_message_when_negated
def failure_message_when_negated "expected #{@actual.inspect} not to be routable, but it routes to #{@routing_options.inspect}" end
def initialize(scope)
def initialize(scope) @scope = scope end
def matches?(path)
def matches?(path) @actual = path match_unless_raises ActionController::RoutingError do @routing_options = @scope.routes.recognize_path( path.values.first, method: path.keys.first ) end end