未找到spec命令(spec command not found)
所以首先我创建了一个文件夹,并创建了一个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 foundso first I created a folder and also created a ruby file and first installed rpsc which it said ok installed successfully, But then when I want to run the spec command it says command not found.
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最满意答案
rspec命令是rspec ,而不是spec 。
所以:
rspec user_spec.rb
The rspec command is rspec, not spec.
So:
rspec user_spec.rb
更多推荐
发布评论