Errno::EBADF: Bad file descriptor - connect

Today this error is the bane of my existence.

It is weird. My app works fine when I am running it through Mongrel,
but as soon as I try to run a unit test, the test explodes with this
error.

Any ideas?

Try out the pre-release:

gem install mongrel --source=http://mongrel.rubyforge.org/releases/

And if you still have the problem then let me know.

Ok. I figured it out, and it was a major bonehead mistake. I forgot
to define the testing section in the database.yml file.

LOL :slight_smile: