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

Wes Gamble weyus at att.net
Wed Oct 8 20:10:41 EDT 2008


Yes.

Nick Hoffman wrote:
> 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 
> environment?
>
> Cheers,
> Nick
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list