[rspec-users] Someone please name this matcher for me

Tero Tilus tero at tilus.net
Wed Aug 6 15:13:54 EDT 2008


2008-08-06 13:11, Mike Vincent:
> > [1, 2, 3, 4, 1].should ... [1, 3, 1, 4, 2]
> [1, 2, 3, 4, 1].should  include_all [1, 3, 1, 4, 2]

I'd then think that

  [1, 1, 1, 2, 3, 4].should include_all [1, 3, 1, 4, 2]
  [1, 2, 3, 4, 5, 6].should include_all [1, 3, 1, 4, 2]

Which afaik was not what Pat had in mind.  Or was it?

And include_all_and_nothing_but is a bit verbose.  :)

-- 
Tero Tilus ## 050 3635 235 ## http://www.tilus.net/koti/tero/


More information about the rspec-users mailing list