class RSpec::Matchers::BuiltIn::Include

def check_expected_count?

Experimental RBS support (using type sampling data from the type_fusion project).

def check_expected_count?: () -> false

This signature was generated using 4 samples from 1 application.

def check_expected_count?
  case
  when !has_expected_count?
    return false
  when expecteds.size != 1
    raise NotImplementedError, 'Count constraint supported only when testing for a single value being included'
  when actual.is_a?(Hash)
    raise NotImplementedError, 'Count constraint on hash keys not implemented'
  end
  true
end