Re: [rspec-users] Simular to Include

2013-02-27 Thread reza . primardiansyah
: rspec-users-boun...@rubyforge.org Date: Thu, 28 Feb 2013 08:35:36 To: rspec-users Reply-To: rspec-users Subject: Re: [rspec-users] Simular to Include ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec

Re: [rspec-users] Simular to Include

2013-02-27 Thread Ervin Weber
(Array1 - array2).should be_blank maybe? On 28 Feb 2013 07:42, "Mattias A." wrote: > Hi, > > I have array1 that contains several web address. Array2 contains the > expected endings of array1 values. How can I control that arrays2 values > is in array1? > > I have tried array1.should include array

Re: [rspec-users] Simular to Include

2013-02-27 Thread Ervin Weber
Misunderstood examples. Array1.collect{|s| s.split ('/').last}.should == array2 seems closer to your intent. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users