rspec / rspec-core

RSpec runner and formatters
http://rspec.info
MIT License
1.23k stars 765 forks source link

Running rspec --help fails on Windows #462

Closed belgoros closed 12 years ago

belgoros commented 13 years ago

I tried to use rspec on a simple Hello project (not a Rails project) from RSpec Book by Pragmatic Programmers on a Windows machine. After installing the gem and its dependencies, it seems like 'rspec' command is unknown. Here is the gem list:

C:\Documents and Settings\20003018\workspace\ruby_bdd>gem list

*** LOCAL GEMS ***

abstract (1.0.0)
actionmailer (3.1.0, 3.0.9)
actionpack (3.1.0, 3.0.9)
activemodel (3.1.0, 3.0.9)
activerecord (3.1.0, 3.0.9)
activeresource (3.1.0, 3.0.9)
activesupport (3.1.0, 3.0.9)
addressable (2.2.6)
akami (1.0.0)
ansi (1.3.0)
archive-tar-minitar (0.5.2)
arel (2.2.1, 2.0.10)
Ascii85 (1.0.1)
bcrypt-ruby (3.0.0 x86-mingw32)
builder (3.0.0, 2.1.2)
bundler (1.0.18)
capybara (1.1.1)
childprocess (0.2.2)
coffee-rails (3.1.0)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
columnize (0.3.4)
cucumber (1.1.0)
devise (1.4.4)
diff-lcs (1.1.3)
enginex (0.8.1)
erubis (2.7.0, 2.6.6)
execjs (1.2.4)
factory_girl (2.1.0)
factory_girl_rails (1.2.0)
ffi (1.0.9 x86-mingw32)
gem_plugin (0.2.3)
gherkin (2.5.1 x86-mingw32)
guard (0.6.3)
guard-rspec (0.4.4)
gyoku (0.4.4)
heroku (2.6.1)
hike (1.2.1)
httpclient (2.2.1)
httpi (0.9.5)
i18n (0.6.0, 0.5.0)
jquery-rails (1.0.14, 1.0.13)
json (1.6.1)
json_pure (1.5.4)
kaminari (0.12.4)
launchy (2.0.5)
linecache19 (0.5.12)
mail (2.3.0, 2.2.19)
mime-types (1.16)
minitest (2.5.1)
mongrel (1.2.0.pre2 x86-mingw32)
multi_json (1.0.3)
nifty-generators (0.4.6)
nokogiri (1.5.0 x86-mingw32)
nori (1.0.2)
orm_adapter (0.0.5)
pdf-reader (0.10.0)
polyglot (0.3.2)
prawn (0.12.0)
rack (1.3.2, 1.2.3)
rack-cache (1.0.3)
rack-mount (0.8.3, 0.6.14)
rack-ssl (1.3.2)
rack-test (0.6.1, 0.5.7)
rails (3.1.0, 3.0.9)
railties (3.1.0, 3.0.9)
rake (0.9.2, 0.8.7)
rb-fchange (0.0.5)
rb-fsevent (0.4.3.1)
rb-notifu (0.0.4)
rdiscount (1.6.8)
rdoc (3.9.4, 2.5.8)
rest-client (1.6.7)
rspec (2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
ruby-debug-base19 (0.11.25)
ruby-debug19 (0.11.6)
ruby-ole (1.2.11.1)
ruby_core_source (0.1.5)
rubygems-update (1.8.10)
rubyzip (0.9.4)
sass (3.1.7)
sass-rails (3.1.0)
savon (0.9.7)
selenium-webdriver (2.5.0)
shoulda (2.11.3)
soap4r (1.5.8)
spreadsheet (0.6.5.8)
sprockets (2.0.0)
spruz (0.2.13)
sqlite3 (1.3.4 x86-mingw32)
term-ansicolor (1.0.6)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
ttfunk (1.0.2)
turn (0.8.2)
tzinfo (0.3.29)
uglifier (1.0.3, 1.0.2)
warden (1.0.5)
wasabi (2.0.0)
webrat (0.7.1)
win32console (1.3.0 x86-mingw32)
xpath (0.1.4)

Running the rspec --help gives the below error (sorry , the OS is in French, so I translated it in English to be more clear):

C:\Documents and Settings\20003018\workspace\ruby_bdd>rspec --help
'rspec' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.

Translated as:

rspec is unknown command neither as external nor as internal one nor executable programme or command file

I'm on Ruby 1.9.2, (ruby 1.9.2p290 (2011-07-09) [i386-mingw32].

Multiple googling gave nothing, unfortunately. Any idea how to fix it Thanks

sinskinner commented 12 years ago

I know that this is an old post, but.. this isn't really an issue. Just create a document in any folder in your PATH (%windir% is one of them) with the following content and you're good to go.

belgoros commented 12 years ago

@nieckarz:Thank you for the link, I'll try it; For the moment it works even without your modifications.