On Fri, Jan 15, 2010 at 4:06 AM, Amit Kulkarni
<amitkkulkarni...@gmail.com> wrote:
> Project.configure do |project|
>   project.email_notifier.emails = ["a...@gmail.com"]
>   project.email_notifier.from = ["test...@gmail.com"]
>   case project.name
>     when 'testproject' then testproject.rake_task = 'spec:controllers'
>      else raise "Don't know what to build for project
> #{project.name.inspect}"
>     end
> end
>
> Could not load project configuration: uninitialized constant testproject in

The error is Ruby telling you have not defined 'testproject'.

However, you shouldn't be doing this in cruise config anyway.  Remove
the case statement from cruise config, and it should just work.  This
is because cruise will run your default rake task by default, which in
Rails should run your tests.  If you want to do something other than
the default rake task, create a 'cruise' rake task and cruise will run
that automatically.

-- Chad
_______________________________________________
Cruisecontrolrb-users mailing list
Cruisecontrolrb-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/cruisecontrolrb-users

Reply via email to