Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
pts/200:00:00 ps There are variations here. This particular example spawned two new spec processes when I killed one of the sh process. I thought it worthwhile to publish the one that works. ;) On Oct 29, 9:54 am, Ashley Moran wrote: > On Oct 29, 2009, at 12:28 pm, Student wrote

Re: [rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-29 Thread Student
3:09 am, Student wrote: > > > I am writing a script that reads connection information from a config > > file, and based, on what it finds, connects to multiple mysql servers > > and performs tasks.  To test this script, I need to set up test > > servers, but getting them runn

[rspec-users] HOWTO: Background tasks during test (ugly)

2009-10-28 Thread Student
I am writing a script that reads connection information from a config file, and based, on what it finds, connects to multiple mysql servers and performs tasks. To test this script, I need to set up test servers, but getting them running without causing the tests to be rerun when they stop is a bit

Re: [rspec-users] at_exit in spec file?

2009-10-28 Thread Student
Sweet! Thanks! On Oct 28, 3:52 pm, Ashley Moran wrote: > On 28 Oct 2009, at 20:42, Student wrote: > > > So now I'm > > back to the "undefined method `after' for main:Object (NoMethodError)" > > problem. > > I think it was just a typo on D

Re: [rspec-users] at_exit in spec file?

2009-10-28 Thread Student
ethodError)" problem. On Oct 28, 12:44 pm, Student wrote: > Some trouble with the list here... > > Hmmm...  That yields "undefined method `after' for main:Object > (NoMethodError)"  ... BUT > > I'm pretty sure I'm barking up the wrong tree.  I think

Re: [rspec-users] at_exit in spec file?

2009-10-28 Thread Student
need to be in separate threads. So I have to background them some way. I've tried playing games with fork & nohup, but no success so far. (When these threads exit, even exit!, the test gets reread & reexecuted.) On Oct 28, 10:49 am, David Chelimsky wrote: > On Oct 28, 2009,

Re: [rspec-users] at_exit in spec file?

2009-10-28 Thread Student
er the reruns. I've tried several variations, nothing is working so far. On Oct 28, 10:49 am, David Chelimsky wrote: > On Oct 28, 2009, at 10:41 AM, Student wrote: > > > I need to perform some work (shutdown mysql servers & delete their > > data directories) at the end o

Re: [rspec-users] at_exit in spec file?

2009-10-28 Thread Student
Hmmm... That yields "undefined method `after' for main:Object (NoMethodError)" ... BUT I'm pretty sure I'm barking up the wrong tree. I think that I'm getting hung up with mysqld_safe. I'm On Oct 28, 10:49 am, David Chelimsky wrote: > On Oct 28, 2009, at

[rspec-users] at_exit in spec file?

2009-10-28 Thread Student
I need to perform some work (shutdown mysql servers & delete their data directories) at the end of my tests. Naturally, I would like to use at_exit. HOWEVER, when I do, the spec file gets loaded twice (and the tests are run twice). Help? ___ rspec-user

Re: [rspec-users] class << self considered harmful... really?

2008-11-28 Thread Student
Performance is one of those nasty things that can go from being a non- issue to THE issue (next to correctness) in the blink of an eye. I am curious, however. How much total performance difference did this change make? I'm betting <1%. Nathan David Chelimsky wrote: > On Thu, Nov 27, 2008 at 8:

Re: [rspec-users] class << self considered harmful... really?

2008-11-27 Thread Student
Everyone seems to agree on the basic issues, but are coming at it from different viewpoints. 1) If you have a bunch of class methods, you have a problem. (class#File: I mean you!) 2) Maintainability is paramount. The question, then, should be: which of these patterns (class << self or self.metho