Re: [rspec-users] Mocking Models in Controller Specs...

2008-05-29 Thread Sven Fuchs
All the mentioned solutions are great, but for me they implied a bit too much hassle to set up and also, given a larger number of specs, a bit slow. This discussion actually motivated me to publish my own stubbing solution that I've recently implemented on GitHub. (This actually is a kind

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 6:32 AM, Juanma Cervera wrote: David Chelimsky wrote: On May 29, 2008, at 6:09 AM, Luis Lavena wrote: On Thu, May 29, 2008 at 5:19 AM, Juanma Cervera <[EMAIL PROTECTED] forum.com> wrote: Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread Juanma Cervera
David Chelimsky wrote: > On May 29, 2008, at 6:09 AM, Luis Lavena wrote: > >> On Thu, May 29, 2008 at 5:19 AM, Juanma Cervera <[EMAIL PROTECTED] >> forum.com> wrote: >>> Hello. >>> >>> I have lost the coloured output in autotest after updating to rspec >>> v1.1.4 > > Actually - that is not from

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 6:14 AM, David Chelimsky wrote: On May 29, 2008, at 6:04 AM, David Chelimsky wrote: On May 29, 2008, at 1:19 AM, Juanma Cervera wrote: Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4 I was already using the edge version and was ok then,

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread Juanma Cervera
Excuse me Luis. These are the versions I am using. OS: Ubuntu 8.04 Edge Rails revision 888a2927b65889465ce7a1a71e87d37640a2b41b ZenTest 3.9.2 rspec 1.1.5 a021e7bdc0d65ab40ad4d441ab8844bcd9c12f0c rspec-rails e52bc93ce598f21da00cd0589cb7cebd2c1c5130 -- Posted via

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 6:09 AM, Luis Lavena wrote: On Thu, May 29, 2008 at 5:19 AM, Juanma Cervera <[EMAIL PROTECTED] forum.com> wrote: Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4 Actually - that is not from 1.1.4 - it's a patch that was introduced after

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread Juanma Cervera
David Chelimsky wrote: > On May 29, 2008, at 1:19 AM, Juanma Cervera wrote: > >> Hello. >> >> I have lost the coloured output in autotest after updating to rspec >> v1.1.4 >> I was already using the edge version and was ok then, before the last >> update. >> >> Anyone knows something about this? >

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 6:04 AM, David Chelimsky wrote: On May 29, 2008, at 1:19 AM, Juanma Cervera wrote: Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4 I was already using the edge version and was ok then, before the last update. Anyone knows something about

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread Luis Lavena
On Thu, May 29, 2008 at 5:19 AM, Juanma Cervera <[EMAIL PROTECTED]> wrote: > Hello. > > I have lost the coloured output in autotest after updating to rspec > v1.1.4 > I was already using the edge version and was ok then, before the last > update. > > Anyone knows something about this? > Can you pr

Re: [rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 1:19 AM, Juanma Cervera wrote: Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4 I was already using the edge version and was ok then, before the last update. Anyone knows something about this? First I've heard of it. I'm not having the sam

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

2008-05-29 Thread Pat Maddox
On Thu, May 29, 2008 at 12:33 AM, David Chelimsky <[EMAIL PROTECTED]> wrote: > On May 29, 2008, at 12:31 AM, Scott Taylor wrote: > >> >> On May 29, 2008, at 2:25 AM, zuo peng wrote: >> >>> Hi, >>> >>> I've got trouble when describe infinite loop. >>> >>> code snippet: >>> >>> def start_loop >>> wh

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

2008-05-29 Thread zuo peng
Thanks guys. Both ways work perfectly. Regards, Peng Zuo ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

[rspec-users] Coloured output in rspec 1.1.4

2008-05-29 Thread Juanma Cervera
Hello. I have lost the coloured output in autotest after updating to rspec v1.1.4 I was already using the edge version and was ok then, before the last update. Anyone knows something about this? Thank you. -- Posted via http://www.ruby-forum.com/. __

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

2008-05-29 Thread Scott Taylor
On May 29, 2008, at 3:33 AM, David Chelimsky wrote: On May 29, 2008, at 12:31 AM, Scott Taylor wrote: On May 29, 2008, at 2:25 AM, zuo peng wrote: Hi, I've got trouble when describe infinite loop. code snippet: def start_loop while true data = self.server.handle_client if data

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

2008-05-29 Thread David Chelimsky
On May 29, 2008, at 12:31 AM, Scott Taylor wrote: On May 29, 2008, at 2:25 AM, zuo peng wrote: 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 w

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

2008-05-29 Thread Scott Taylor
On May 29, 2008, at 2:25 AM, zuo peng wrote: 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 logi

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

2008-05-29 Thread Edvard Majakari
On Thu, May 29, 2008 at 9:25 AM, zuo peng <[EMAIL PROTECTED]> wrote: > Hi, > > I've got trouble when describe infinite loop. > > code snippet: > > def start_loop >while true Not a reply to your specific question, but hopefully even better. I stumbled into similar situation a while ago, when