Re: [rspec-users] Simular to Include

2013-02-27 Thread reza . primardiansyah
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 weber...@gmail.com
Sender: rspec-users-boun...@rubyforge.org
Date: Thu, 28 Feb 2013 08:35:36 
To: rspec-usersrspec-users@rubyforge.org
Reply-To: rspec-users rspec-users@rubyforge.org
Subject: Re: [rspec-users] Simular to Include

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users


Re: [rspec-users] Rspec Rails high overhead

2009-01-05 Thread Reza Primardiansyah
Aslak,
The best time I get is 6.3 seconds. I'm using time script/server command
and hitting Ctrl-C immediately after I see ** Use CTRL-C to stop.


On Sun, Jan 4, 2009 at 9:43 PM, aslak hellesoy aslak.helle...@gmail.comwrote:



 On Sun, Jan 4, 2009 at 3:58 AM, Reza Primardiansyah 
 reza.primardians...@gmail.com wrote:

 Greetings,
 I found out that running RSpec on Rails takes too much overhead. It takes
 more than 16s per run although the specs only take less than 6s, like seen
 below. That means almost 11s overhead.
 I can't find the bottleneck. I use latest rspec, and rails 2.2 on Debian.

 $ time rake spec
 (in /home/reza/system)

 

 Finished in 5.493595 seconds

 340 examples, 0 failures

 real0m16.497s
 user0m14.059s
 sys 0m2.266s


 I know that Debian's ruby is slow. So I tried using enterprise ruby. Not
 much difference

 $ time /opt/ruby-enterprise/bin/ruby /var/lib/gems/1.8/bin/rake spec
 (in /home/reza/system)

 

 Finished in 3.170093 seconds

 340 examples, 0 failures

 real0m12.033s
 user0m9.948s
 sys 0m1.735s


 The overhead is also felt when using autospec. Even using sqlite's
 in-memory-db doesn't change much.

 Can anyone give me hint about what happens and what to do to overcome it?


 How long does ruby script/server take before the server is up?

 Aslak



 Thanks all.

 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users



 ___
 rspec-users mailing list
 rspec-users@rubyforge.org
 http://rubyforge.org/mailman/listinfo/rspec-users

___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users