views:

49

answers:

1

When I execute a Rails unit test from the command line (as suggested here) such as

ruby unit/test_model.rb

...I get this error:

No such file or directory - .../test/config/database.yml (Errno::ENOENT)

Am I doing something wrong? Or is there a workaround?

A: 

I found one possible solution here. From the project root directory, run:

ruby -Itest test/unit/test_model.rb
Drew Johnson