class RSpec::Support::MethodSignature

def valid_non_kw_args?(positional_arg_count, optional_max_arg_count=positional_arg_count)

def valid_non_kw_args?(positional_arg_count, optional_max_arg_count=positional_arg_count)
  return true if positional_arg_count.nil?
  min_non_kw_args <= positional_arg_count &&
    optional_max_arg_count <= max_non_kw_args
end