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 file开发者_如何学Gos 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.
On Windows, try this bundle exec rspec spec
There's no spec
command in RSpec 2. Try rake spec
or rspec spec
.
精彩评论