自动测试问题 [英] autotest problem

查看:154
本文介绍了自动测试问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了包含自动测试4.4.6的Zentest 4.4.6,运行自动测试时出现以下错误:

I just installed Zentest 4.4.6 which includes autotest 4.4.6 and when I run autotest I get the following error:

gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError)

是吗?就像它恢复为无轨红宝石

huh? it's like it reverted back to ruby without rails

推荐答案

我不懂日语,但看着

http://d.hatena.ne.jp/hkj/20110724

我了解到,您可以通过从以下位置更改第226行来使其起作用:

I learned that you can make it work by changing line 226 from:

# hacky_discovery = Gem::Specification.any? { |s| s.name =~ /^rspec/ }

# hacky_discovery = true

此行在此提交中的最后修改: https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c

This line was last modified in this commit: https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c

此问题在这里报告: https://github.com/seattlerb/zentest/issues/5

更新:要解决此问题,只需升级您的红宝石:gem update --system

UPDATE: To solve this problem just upgrade your rubygems: gem update --system

更新2 :ZenTest 4.6.1解决了此问题.

UPDATE 2: ZenTest 4.6.1 solves this problem.

这篇关于自动测试问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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