这个MiniTest :: Unit :: TestCase警告是什么意思? [英] What does this MiniTest::Unit::TestCase warning mean?

查看:99
本文介绍了这个MiniTest :: Unit :: TestCase警告是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的测试运行正常,突然出现以下警告:

My tests were running without problems, when suddenly the following warning appeared:

MiniTest::Unit::TestCase is now Minitest::Test

这是在以下库中报告的:

This was reported in the following libs:

ruby-1.9.3-p392/lib/ruby/1.9.1/test/unit/testcase.rb:8:in `<module:Unit>'
gems/activesupport-3.2.12/lib/active_support/test_case.rb:12:in `<module:ActiveSupport>'
gems/activesupport-3.2.12/lib/active_support/descendants_tracker.rb:34:in `inherited'

我不知道是什么促使这些警告出现.有人知道我该怎么做才能消除警告?

I have no idea what prompted these warnings to appear. Does anybody know what I can do to eliminate the warnings?

即使出现警告,测试仍然可以正常运行.

The test still appear to run fine, even with the warnings.

我的Rails环境是3.2.12,在OSX 10.8.4上运行.

My Rails environmentis 3.2.12, running on OSX 10.8.4.

谢谢!

推荐答案

您必须已升级到minitest 5.0. MiniTest :: Unit :: TestCase重命名为Minitest :: Test.这是发行说明.

You must have upgraded to minitest 5.0. MiniTest::Unit::TestCase was renamed to Minitest::Test. Here are the release notes.

这篇关于这个MiniTest :: Unit :: TestCase警告是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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