[rspec-users] Fail to load spec/rake/spectask
dchelimsky at gmail.com
Mon Oct 25 20:48:43 EDT 2010
On Oct 25, 2010, at 8:49 PM, Fredrik Westermark wrote:
> 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?
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).
> Best regards
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users