Tag: sublimetext2

Ruby on Rails:/ bin / sh:rspec:找不到命令

我目前正在阅读Michael Hartl的RoR教程,并且在尝试运行Spork和Guard时陷入了第3章。 当我尝试运行测试时,我得到: /bin/sh: rspec: command not found 是的,我确实四处寻找答案,但我没有看到RubyTest.sublime.settings文件在哪里,所以我不知道如何编辑它。 任何人都可以帮我解决如何解决我的错误? 这是我的用户fodler中的Rubytest.sublime.settings文件 { “erb_verify_command”: “bundle exec erb -xT – {file_name} | ruby -c”, “ruby_verify_command”: “bundle exec ruby -c {file_name}”, “run_ruby_unit_command”: “bundle exec ruby -Itest {relative_path}”, “run_single_ruby_unit_command”: “bundle exec ruby -Itest {relative_path} -n ‘{test_name}'”, “run_cucumber_command”: “bundle exec cucumber {relative_path}”, “run_single_cucumber_command”: “bundle exec cucumber {relative_path} -l{line_number}”, “run_rspec_command”: “bundle […]