# File lib/rspec/rails/matchers/routing_matchers.rb, line 57 def initialize(scope) @scope = scope end
@api private
# File lib/rspec/rails/matchers/routing_matchers.rb, line 72 def failure_message_for_should_not "expected #{actual.inspect} not to be routable, but it routes to #{@routing_options.inspect}" end
@api private
# File lib/rspec/rails/matchers/routing_matchers.rb, line 62 def matches?(path) super(path) match_unless_raises ActionController::RoutingError do @routing_options = @scope.routes.recognize_path( path.values.first, :method => path.keys.first ) end end