[rspec-users] What makes specs run against the test database?

Nick Hoffman nick at deadorange.com
Wed Oct 8 19:54:23 EDT 2008

On 2008-10-08, at 19:50, Wes Gamble wrote:
> I just did a test where I ran one spec and deep deep within the code
> under test, I printed out the DB connection of the AR class of a given
> object, like so:
> <..snip..>
> which shows that I am hitting my development database.  Why would I  
> see
> this output when running a spec that AFAIK, should be running against
> the test DB?
> Thanks,
> wes

This sounds like a dumb question, but in database.yml , have you  
confirmed that your test DB is configured for use in the test  


More information about the rspec-users mailing list