From: Bryan Richardson Date: 2008-01-18T13:14:52+09:00 Subject: Needing help using Rake from within a Ruby program ------=_Part_806_8682847.1200629642532 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello all, I'm trying to invoke rake from within one of my Unit Test files to setup a test database before running tests and I'm having some trouble doing so. I try the following code in a file that is located in the same directory as my Rakefile: rake = Rake::Application.new rake['foo:bar:load'].invoke 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 passing it the foo:bar:load task it works fine. Any suggestions? Thanks! -- BTR ------=_Part_806_8682847.1200629642532--