[rspec-users] What makes specs run against the test database?
weyus at att.net
Wed Oct 8 20:10:41 EDT 2008
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:
>> 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?
> This sounds like a dumb question, but in database.yml , have you
> confirmed that your test DB is configured for use in the test
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users