Fail to load spec/rake/spectask


I’m a newbie at Ruby. I’m trying to run rspec tests using rake. In my
rake file I include spec/rake/spectask.

It fails to load giving me the following message:
rake aborted!
no such file to load – spec/rake/spectask

I’m using version 1.8.7 of Ruby.
I have installed rake and rspec using:
gem install rake
gem install rspec

Here is the list of installed gems:
builder (2.1.2)
childprocess (0.1.3)
ci_reporter (1.6.3)
diff-lcs (1.1.2)
ffi (0.6.3 x86-mingw32)
json_pure (1.4.6)
rake (0.8.7)
rspec (2.0.1)
rspec-core (2.0.1)
rspec-expectations (2.0.1)
rspec-mocks (2.0.1)
rspec-rails (2.0.1)
rubyzip (0.9.4)
selenium-webdriver (0.0.29)

What am I doing wrong? Why doesn’t spec/rake/spectask load?

Best regards

On Oct 25, 2010, at 8:49 PM, Fredrik Westermark wrote:

ffi (0.6.3 x86-mingw32)
What am I doing wrong? Why doesn’t spec/rake/spectask load?
Because it doesn’t exist in rspec-2! See for more

I’ve re-added it for the next rspec-2 release (2.0.2) with a deprecation
notice, so other folks trying this out won’t be surprised after that.

Use rspec/core/rake_task instead (and RSpec::Core::RakeTask in the


Many thanks David! My rspec tests can now be executed and presented from
Hudson using rake and the ci_reporter.

Best regards

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs