未找到spec命令(spec command not found)

编程入门 行业动态 更新时间:2024-10-22 02:45:30
未找到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 found

so 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

更多推荐

本文发布于:2023-07-08 19:59:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1080241.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:未找到   命令   spec   command

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!