[rspec-users] Simular to Include

reza.primardiansyah at gmail.com reza.primardiansyah at gmail.com
Thu Feb 28 07:04:29 UTC 2013


It appears to duplicate implementation. Perhaps this can do:
array2.each do |s2| 
  array1.should be_any do |s1|
    s1.include s2
  end 
end

Or use zip instead

Sent from my BlackBerry® smartphone from Sinyal Bagus XL, Nyambung Teruuusss...!

-----Original Message-----
From: Ervin Weber <webervin at gmail.com>
Sender: rspec-users-bounces at rubyforge.org
Date: Thu, 28 Feb 2013 08:35:36 
To: rspec-users<rspec-users at rubyforge.org>
Reply-To: rspec-users <rspec-users at rubyforge.org>
Subject: Re: [rspec-users] Simular to Include

_______________________________________________
rspec-users mailing list
rspec-users at rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


More information about the rspec-users mailing list