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 web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
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)