[rspec-users] no such file to load -- spec/rake/spectask

Matt Davies lists at ruby-forum.com
Wed Oct 13 07:20:47 EDT 2010

Hello there

I'm running a rails 2.3.5 project and I can't run any rake tasks

My error is

no such file to load -- spec/rake/spectask

Here's a relevant snippet of gem list output

rails (2.3.5)
rake (0.8.7)
random_data (1.5.0)
RedCloth (4.2.2)
remarkable (3.1.13)
remarkable_activerecord (3.1.13)
remarkable_paperclip (0.6.3)
remarkable_rails (3.1.11)
rspec (2.0.0)
rspec-core (2.0.0)
rspec-expectations (2.0.0)
rspec-mocks (2.0.0)
rspec-rails (1.2.9)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)

So I have rspec 2.0.0 installed.

What is strange is that if I'm using a system that also has rspec 1.3.0
this error goes away.

Has something changed in how you reference spec/rake/spectask in rspec
2.0.0, as compared to rspec 1.3.0?

Here's the gemfile snippet if that is relevant.

group :test do
  gem 'ruby-debug'
  gem 'cucumber', "0.4.4"
  # gem 'cucumber-rails'
  gem 'rspec-rails', '1.2.9'
  gem 'remarkable_rails', '3.1.11'
  gem 'remarkable_paperclip', '0.6.3'
  gem 'random_data', '1.5.0'
  gem 'machinist', '1.0.6'
  gem 'shoulda', '2.10.2'
  gem 'faker', '0.3.1'
  gem 'webrat', '0.6.0'

Any help, greatly appreciated.

Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list