[rspec-users] how to write spec for infinite loop?

2008-05-28 Thread zuo peng
Hi, I've got trouble when describe infinite loop. code snippet: def start_loop while true data = self.server.handle_client if data self.manager.dispatch(data) end end end without the loop, it is easy to test the logic. but how can I describe it to tell the

Re: [rspec-users] Permission error when installing rspec

2008-05-28 Thread marcio
indeed it was with sudo. that wasn't the problem. i installed another linux in my pc and i dah out of date my gem! now things works perfectly! definitely i'm a beginner! thanks a lot! On 28 mayo, 07:23, "T K" <[EMAIL PROTECTED]> wrote: > How about `sudo gem install rspec`? > Then type your passwor

Re: [rspec-users] Permission error when installing rspec

2008-05-28 Thread marcio
Hi Pat! Thanks a lot I realized that was not rspec the problem, i changed my linux distro and i forgot to update my gem , i had the 0.9 version! Now the rspec and all the others gem works perfectly. thanks a lot. On 28 mayo, 02:47, "Pat Maddox" <[EMAIL PROTECTED]> wrote: > On Tue, May 27, 2008 at

Re: [rspec-users] Permission error when installing rspec

2008-05-28 Thread T K
How about `sudo gem install rspec`? Then type your password. ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users