I’m trying to invoke rake from within one of my Unit Test files to setup
test database before running tests and I’m having some trouble doing so.
try the following code in a file that is located in the same directory
rake = Rake::Application.new
and I get the following:
RuntimeError: Don’t know how to build task ‘foo:bar:load’
However, if I run rake from the command line in this same directory
it the foo:bar:load task it works fine. Any suggestions?
Thanks! – BTR