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?
I found one possible solution here. From the project root directory, run: