我应该在哪里将 require autotest 添加到我的自动测试文件中
我正在创建一个新的 Rails 应用程序作为学习项目。我已经为大学完成了一个 Rails 应用程序商店,但我现在正在尝试启动一个新的应用程序,现在知道了更多我以前不知道的信息。我希望正确测试该应用程序,因此我按照 micheal hartl 教程来设置测试环境。我已经安装了一切正常,但有一点我必须将
require 'autotest-growl'
和
require 'autotest-fsevent'
添加到我的 .autotest 文件中。我之前已经完成了这个教程,但从那以后我读了更多关于 rspec 和自动测试的内容。(虽然不是太多) 所以我的问题是 自动测试文件应该与我的项目位于同一目录中吗? 它当前安装在哪里(我在 c:/ruby192/bin 中找到了它,我安装了 ruby)? 我在 Windows 7 机器上,使用 Rails 3.0.1
I am creating a new rails app as a learning project. I have already completed a rails app store for college but I am now trying to start a new app now knowing a bit more i didn't before. I wish to test the app correctly so I am following the micheal hartl tutorial for setting up the test environment. I have installed everything okay but there is a point where i must add
require 'autotest-growl'
and
require 'autotest-fsevent'
to my .autotest file. I have done this tutorial before, but I have read some more on rspec and autotest since.(not too much though)
So my question(s) are
Should the autotest file be in the same directory as my project?
Where is it currently installed (i found it in c:/ruby192/bin where i have ruby installed) ?
I am on a windows 7 machine, using rails 3.0.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
由于您使用的是 Windows,因此这两行
require
行毫无意义...它们都是特定于 Mac OS X 的。您应该能够在没有文件的情况下继续操作;您不会收到教程可能提到的 Growl 通知,但您仍然会在控制台/命令行中看到测试输出。
Since you're on Windows, those two
require
lines are pointless... they both are specific for Mac OS X.You should be able to proceed without the file just fine; you won't have the Growl notifications the tutorial may refer to, but you'll still see your test output in the console/command line.