# Cruisecontrol and Rspec

**URL:** <https://www.ruby-forum.com/t/cruisecontrol-and-rspec/131580>\
**Category:** Ruby\
**Created:** [March 11, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/cruisecontrol-and-rspec/131580 "2008-03-11T16:06:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdsykes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@sdsykes](https://www.ruby-forum.com/u/sdsykes)\
**Post date:** [March 11, 2008, 4:06pm UTC](https://www.ruby-forum.com/t/cruisecontrol-and-rspec/131580/1 "2008-03-11T16:06:43Z")

</div>

Hi All,

I have cruisecontrol machine monitoring four projects. 3 of the 4  
projects  
are running custom rake tasks. I’d love  
for the fourth project to simply run ‘spec’. I’ve edited  
cruise\_config.rb  
to include the line

project.rake\_task = “spec”

But my builds fail with the following message:  
rake aborted! production database is not configured (See full trace by  
running task with --trace) (in  
/subversion/cruisecontrol/cruisecontrolrb-  
1.1.0/projects/conduct/work)

The (not so) funny thing is - rake spec works just fine (and looks to my  
project’s test DB) from the cruise machine’s command prompt.  
After some creative web-searches I decided to make a custom rake task  
that  
simply calls the spec rake task…

desc ‘Continuous build target’  
task :cruise do  
Rake::Task[‘spec’].invoke  
end

…and call project.rake\_task = “spec” from cruise\_config.rb but I’m  
still having the same problem.

If anyone else has been through something similar and has insight -  
I’d love to hear about it.

Thanks,  
Stephen
