Read more

RSpec matcher "be_sorted"

Dominik Schöler
December 19, 2014Software engineer at makandra GmbH
RSpec::Matchers.define :be_naturally_sorted do
  match do |array|
    array == array.natural_sort
  end
end

See RSpec: Where to put custom matchers and other support code. To use natural_sort, see this card.


Illustration UI/UX Design

UI/UX Design by makandra brand

We make sure that your target audience has the best possible experience with your digital product. You get:

  • Design tailored to your audience
  • Proven processes customized to your needs
  • An expert team of experienced designers
Read more Show archive.org snapshot

This matcher is now part of Spreewald Show archive.org snapshot .

Posted by Dominik Schöler to makandra dev (2014-12-19 17:22)