ESpec.Assertions.Enum.HaveCountBy

Defines ‘have_count_by’ assertion.

it do: expect(collection).to have_count_by(func, value)

Source

Summary

assert(subject, data, positive \\ true)

Functions

assert(subject, data, positive \\ true)
Source