RubyTest 与 SublimeText 2 [英] RubyTest with SublimeText 2

查看:39
本文介绍了RubyTest 与 SublimeText 2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Sublime Text 2 并安装了 RubyTest 包.我正在尝试使用 Command-Shift-R 运行测试.

I'm using Sublime Text 2 and installed the RubyTest package. I'm trying to run a test using Command-Shift-R.

我也将 rbenv 用于 ruby​​,并使用 Bundler 安装了 gem.

I also use rbenv for ruby and have installed gems using Bundler.

输出为:

/bin/sh: rspec: command not found

控制台显示以下命令已运行:

The console shows the following command was run:

cd '/Users/user/Dropbox/code/app/' && rspec spec/controllers/profile_controller_spec.rb -l 163

当我在终端中运行该命令时,它工作正常.为什么它在 Sublime 中不起作用?

When I run that command in Terminal, it works fine. Any why it wouldn't work in Sublime?

推荐答案

你是如何开始崇高的?

以下 url 应该可以帮助您从终端启动 sublime,这应该可以解决此问题http://www.sublimetext.com/docs/2/osx_command_line.html

Following url should help you in starting sublime from terminal, which should fix this problem http://www.sublimetext.com/docs/2/osx_command_line.html

这篇关于RubyTest 与 SublimeText 2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆