【问题标题】:autospec with cucumber in rails app在 Rails 应用程序中使用黄瓜进行 autospec
【发布时间】:2009-08-22 14:14:47
【问题描述】:

我的黄瓜功能工作正常,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:警告:在无效上下文中无用地使用文字 /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

有解决办法吗

干杯

【问题讨论】:

    标签: ruby-on-rails rspec cucumber bdd


    【解决方案1】:
    $KCODE = 'U'
    

    并将其放入.autotest 文件中

    【讨论】:

      【解决方案2】:

      我的 .autotest 文件中有问题,所以我将其清除,现在一切正常

      【讨论】:

        猜你喜欢
        • 2018-08-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-12-12
        • 2017-11-13
        相关资源
        最近更新 更多