Rails 应用程序中的 autospec 与黄瓜

发布于 2024-08-02 04:09:44 字数 1841 浏览 6 评论 0原文

我的黄瓜功能工作正常,rspec 规范工作正常,我可以运行黄瓜功能和规范规范,它们都可以工作,但现在我正在考虑让 autospec 运行,但运行会产生以下

警告:$KCODE 为无。 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/step_definition.rb:100:警告:重新定义方法; 丢弃旧的正则表达式 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/ruby_extensions/string.rb:31:警告:重新定义方法; 放弃旧的缩进 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/node_classes/character_class.rb:13:警告:在 void 上下文中无用地使用文字 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler.rb:5:警告:全局变量“$exclude_metagrammar”未初始化 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:232:警告:方法重新定义; 丢弃旧空间 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:388:警告:方法重新定义; 丢弃旧空间 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:771:警告:重新定义方法; 丢弃旧空间 /opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:779:警告:方法重新定义; 丢弃旧空间 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:28:警告:方法重新定义; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:36:警告:重新定义方法; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:679:警告:方法重新定义; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:687:警告:方法重新定义; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:813:警告:重新定义方法; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:825:警告:方法重新定义; 丢弃旧的白色 /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/blank.rb:49:警告:重新定义方法; 丢弃旧的空白?

我正在运行 AUTOFEATURE=true autospec

有解决方案吗

I have cucumber features working fine and rspec spec working fine i can run both cucumber features and spec spec and they all work but now im looking at getting autospec to run but running does the produces the following

Warning: $KCODE is NONE.
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/step_definition.rb:100: warning: method redefined; discarding old regexp
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/ruby_extensions/string.rb:31: warning: method redefined; discarding old indent
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/node_classes/character_class.rb:13: warning: useless use of a literal in void context
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler.rb:5: warning: global variable `$exclude_metagrammar' not initialized
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:232: warning: method redefined; discarding old space
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:388: warning: method redefined; discarding old space
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:771: warning: method redefined; discarding old space
/opt/local/lib/ruby/gems/1.8/gems/treetop-1.2.6/lib/treetop/compiler/metagrammar.rb:779: warning: method redefined; discarding old space
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:28: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:36: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:679: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:687: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:813: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/cucumber-0.3.90/lib/cucumber/parser/feature.rb:825: warning: method redefined; discarding old white
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/blank.rb:49: warning: method redefined; discarding old blank?

im running AUTOFEATURE=true autospec

is there a solution

cheers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

末が日狂欢 2024-08-09 04:09:44
$KCODE = 'U'

并将其放入 .autotest 文件中

$KCODE = 'U'

and put this in .autotest file

筑梦 2024-08-09 04:09:44

我的 .autotest 文件中有一些不好的东西,所以我将其清除,现在一切正常

I had something bad in the .autotest file so i cleared it out and everything works now

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文