time bundle exec rspec spec / requests / static_pages_spec.rb -----系统无法接受输入的时间

时间:2014-07-27 03:05:26

标签: ruby-on-rails command-line

我真的希望有人能为我回答一个问题。我花了好几天时间为rubytutorial.org配置了我需要的所有东西,而且我得到了Windows操作系统带来的那种熟悉的挫败感。

我在3.6.3节使用Rubytutorial.org的Spork加速测试。

我刚刚安装了Guard和Spork。

迈克尔·哈特尔说:“在运行Spork之前,我们可以通过计算我们的测试套件来获得测试开销的基线,如下所示:”

$ time bundle exec rspec spec/requests/static_pages_spec.rb
......

6 examples, 0 failures

real    0m8.633s
user    0m7.240s
sys     0m1.068s

以下是我收到的内容。

time bundle exec rspec spec/requests/static_pages_spec.rb
The system cannot accept the time entered.
Enter the new time:

如果有人有想法,我确实试图在其他地方搜索......有一个人http://someguyonrails.tumblr.com/post/29715188571/guard-spork-error-in-rails-tutorial-section-3-6有一个资源,但他的Gemfile与我的不同,修复方法也不一样。我认为无论如何他都是一个解决方法。

以下是该页面的引用,“我遇到的第一个问题是在运行命令时”time bundle exec rspec spec / requests / static_pages_spec.rb -drb,“我在命令窗口中收到以下消息”系统不能接受输入的时间。输入新的时间:“这仍然没有解决,但我认为这意味着我的Windows命令提示符不像教程所期望的那样解释”time“命令。我不确定这个,所以请随意摆脱一些亮点对此。“

我在搜索的内容中找不到任何其他内容。

谢谢..

1 个答案:

答案 0 :(得分:0)

time是一个Unix命令,在Windows上本身不可用。 https://superuser.com/questions/228056/windows-equivalent-to-unix-time-command讨论了Powershell的等效内容。我建议安装Github for Windows,它会给你一个bash shell,它更适合Rails开发。您还应该强烈考虑在Vagrant中运行Rails。