class RSpec::Rails::Matchers::RoutingMatchers::RouteToMatcher
def initialize(scope, *expected)
def initialize(scope, *expected) @scope = scope @expected = expected[1] || {} if Hash === expected[0] @expected.merge!(expected[0]) else controller, action = expected[0].split('#') @expected.merge!(controller: controller, action: action) end end