提交 5c7762b1 编写于 作者: R Robin Dupret

Use MiniTest::Unit::TestCase instead of Minitest::Test

Since Rails 4.0.x is depending on Minitest 4.x, the constant won't be
available so the gist won't run.

[ci skip]
上级 c989a18a
......@@ -25,7 +25,7 @@ class Comment < ActiveRecord::Base
belongs_to :post
end
class BugTest < Minitest::Test
class BugTest < MiniTest::Unit::TestCase
def test_association_stuff
post = Post.create!
post.comments << Comment.create!
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册