我有黄瓜功能工作正常和rspec规格工作正常我可以运行黄瓜功能和规格规格,他们都工作但现在我看着让autospec运行但运行生产以下
警告:$ KCODE为NONE。 /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:warning:方法重新定义;丢弃旧空间 /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
是否有解决方案
欢呼声
答案 0 :(得分:1)
$KCODE = 'U'
并将其放入.autotest
文件
答案 1 :(得分:0)
我在.autotest文件中有一些不好的东西,所以我把它清理干净了,现在一切正常了