无效选项:--autospec [英] invalid option: --autospec

查看:232
本文介绍了无效选项:--autospec的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  / usr / local / bin / ruby​​ -rrubygems -erequire'redgreen'/usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0 / bin / spec --autospec< files_here> -O spec / spec.opts 

无效选项:--autospec
Test :: Unit自动运行器。
用法:-e [选项] [ - 未经修改的参数]

其中规范说/ usr / local / bin / spec
其中autospec说/ usr / local / bin / autospec

/ usr / local / bin / spec --help在列表中包含--autospec选项。

我在这里缺少什么?



问题是require'redgreen / autotest'在.autotest文件中保存语句
我将自动测试配置保存在〜/ .autotest



注释该行和autospec,autotest工作正常。


/usr/local/bin/ruby -rrubygems -e "require 'redgreen'"  /usr/local/lib/ruby/gems/1.8/gems/rspec-1.3.0/bin/spec --autospec <files_here> -O spec/spec.opts

invalid option: --autospec
Test::Unit automatic runner.
Usage: -e [options] [-- untouched arguments]

which spec says "/usr/local/bin/spec"
which autospec says "/usr/local/bin/autospec"

/usr/local/bin/spec --help includes --autospec option in the list.

What am I missing here?

解决方案

I finally got some time during the weekend to look into this myself.

The problem is "require 'redgreen/autotest'" statement in .autotest file I keep my autotest configuration in ~/.autotest

Comment that row and "autospec", "autotest", and "cucumber" works ok.

这篇关于无效选项:--autospec的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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