matt at mattwynne.net
Wed Aug 27 12:28:49 EDT 2008
On a similar vein, is there a neater way to express:
In case you wondered: The opinions expressed in this email are my own
and do not necessarily reflect the views of any former, current or
future employers of mine.
On 27 Aug 2008, at 17:16, Matt Wynne wrote:
> I found myself having to write this today:
> class ArrayMatcher
> def initialize(array_to_match)
> @array_to_match = array_to_match
> def ==(other)
> ok = true
> @array_to_match.each do |item|
> ok = ok and other.include?(item)
> def array_including(array_to_match)
> Is there already something in the framework that does this?
> In case you wondered: The opinions expressed in this email are my
> own and do not necessarily reflect the views of any former, current
> or future employers of mine.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users