ESpec.Assertions.Enum.HaveMaxBy (ESpec v1.10.0)

View Source

Defines 'have_max_by' assertion.

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

Summary

Functions

assert(subject, data, positive \\ true)

assert(subject, data, positive, stacktrace)