# Fail to load spec/rake/spectask

**URL:** <https://www.ruby-forum.com/t/fail-to-load-spec-rake-spectask/198073>\
**Category:** RSpec\
**Created:** [October 26, 2010, 12:49am UTC](https://www.ruby-forum.com/t/fail-to-load-spec-rake-spectask/198073 "2010-10-26T00:49:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![okkezSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/o/85f322/32.png) [@okkezSS](https://www.ruby-forum.com/u/okkezSS)\
**Post date:** [October 26, 2010, 12:49am UTC](https://www.ruby-forum.com/t/fail-to-load-spec-rake-spectask/198073/1 "2010-10-26T00:49:07Z")

</div>

Hi!

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  
C:/Ruby187/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in  
`raw\_load\_rakefile’

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  
/Fredrik

---

<div class="post-metadata">

**Author:** ![emory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@emory](https://www.ruby-forum.com/u/emory)\
**Post date:** [October 26, 2010, 7:49am UTC](https://www.ruby-forum.com/t/fail-to-load-spec-rake-spectask/198073/2 "2010-10-26T07:49:40Z")

</div>

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  
> [http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown](http://github.com/rspec/rspec-core/blob/master/Upgrade.markdown) for more  
> info.

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  
Rakefile).

HTH,  
David

---

<div class="post-metadata">

**Author:** ![emory](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/43a26b/32.png) [@emory](https://www.ruby-forum.com/u/emory)\
**Post date:** [October 26, 2010, 11:53pm UTC](https://www.ruby-forum.com/t/fail-to-load-spec-rake-spectask/198073/3 "2010-10-26T23:53:05Z")

</div>

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

Best regards  
/Fredrik
