Rails: unit test fails with "No such file or directory....database.yml" error

Posted by Drew Johnson on Stack Overflow See other posts from Stack Overflow or by Drew Johnson
Published on 2010-04-23T20:15:09Z Indexed on 2010/04/24 15:53 UTC
Read the original article Hit count: 298

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about unit-testing