未找到spec命令

时间:2013-01-29 21:22:34

标签: rspec

所以首先我创建了一个文件夹,并且还创建了一个ruby文件并首先安装了rpsc,它说安装成功,但是当我想运行spec命令时,它说找不到命令。

Jonys-MacBook-Pro:rspec_tutorial JonyIve$ gem install rspec
Successfully installed rspec-2.12.0
1 gem installed
Installing ri documentation for rspec-2.12.0...
Installing RDoc documentation for rspec-2.12.0...
Jonys-MacBook-Pro:rspec_tutorial JonyIve$ spec user_spec.rb
-bash: spec: command not found

1 个答案:

答案 0 :(得分:0)

rspec命令为rspec,而不是spec

所以:

rspec user_spec.rb