Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difficulty installing RSpec on Windows

I'm trying to get started with RSpec. I already had Ruby 1.8.7 installed on my Windows 7 machine.

So I typed gem install rspec and that seemed to work. But if I type spec in the command line, the command is not found. My path currently includes the bin folder in my RUBY_HOME.

If I look into the C:\Users\Eric\.gem\specs\rubygems.org%80\quick\Marshal.4.8 directory, I do see four RSpec files such as rspec-core-2.5.0.gemspec. Nevertheless, the spec command fails even in this directory.

What needs to be done to install RSpec correctly? It would seem like a path issue, but I have been unable to find a directory where the spec command works, so I can't figure what to add to my path.

like image 369
Eric Wilson Avatar asked Dec 17 '22 15:12

Eric Wilson


2 Answers

On Windows, try this bundle exec rspec spec

like image 192
lordtyron Avatar answered Dec 30 '22 06:12

lordtyron


There's no spec command in RSpec 2. Try rake spec or rspec spec.

like image 37
Dogbert Avatar answered Dec 30 '22 07:12

Dogbert