On Oct 25, 2010, at 8:49 PM, Fredrik Westermark wrote: > 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?
Because it doesn't exist in rspec-2! See 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 > > Best regards > /Fredrik > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users