Eric Wilson
Eric Wilson

Reputation: 59385

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.

Upvotes: 4

Views: 5996

Answers (2)

lordtyron
lordtyron

Reputation: 71

On Windows, try this bundle exec rspec spec

Upvotes: 7

Dogbert
Dogbert

Reputation: 222288

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

Upvotes: 5

Related Questions