ruby-on-rails – 自动测试问题
发布时间:2020-12-16 19:19:53 所属栏目:百科 来源:网络整理
导读:我刚刚安装了Zentest 4.4.6,其中包括autotest 4.4.6,当我运行自动测试时,我收到以下错误: gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError) 是吧?就像它没有铁轨就恢复
我刚刚安装了Zentest 4.4.6,其中包括autotest 4.4.6,当我运行自动测试时,我收到以下错误:
gems/ZenTest-4.6.0/lib/autotest.rb:226:in `autodiscover': undefined method `any?' for Gem::Specification:Class (NoMethodError) 是吧?就像它没有铁轨就恢复了ruby 解决方法
我不懂日语,但看着
http://d.hatena.ne.jp/hkj/20110724 我了解到你可以通过改变第226行来实现它: # hacky_discovery = Gem::Specification.any? { |s| s.name =~ /^rspec/ } 至 # hacky_discovery = true 该行最后一次在此提交中修改:https://github.com/seattlerb/zentest/commit/b462a8f1dcc03528d91c77cabc15f8575d9c378c 此问题报告在此处:https://github.com/seattlerb/zentest/issues/5 更新:要解决此问题,只需升级您的rubygems:gem update –system 更新2:ZenTest 4.6.1解决了这个问题. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |