[rspec-users] HOWTO: Background tasks during test (ugly)
blogger at pierian-spring.net
Thu Oct 29 08:28:22 EDT 2009
No autoscript here. I don't doubt that there are wrappers that might
handle it, I was going for a solution in a bare rspec environment.
datadir was missed in the transposition--it should have been data
On Oct 29, 5:22 am, Ashley Moran <ashley.mo... at patchspace.co.uk>
> On Oct 29, 2009, at 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 running without causing the tests to be
> > rerun when they stop is a bit..tricky. I cannot say that I'm proud of
> > it, but here is how I did it:
> Is this because of autospec? If so, you can modify the files autotest
> watches. Or, you could do the server stuff in a tmpdir directory.
> Let me know if I'm off-target - I can't see the definition of
> `datadir` in your snippet.
> rspec-users mailing list
> rspec-us... at rubyforge.orghttp://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users