I get an error from this, it can't find the file when I run "rake test".  Perhaps because my pwd is the discovery checkout.  Changing it to this worked:

    require File.expand_path("../../.foreman_app/config/environment.rb", __FILE__)