提交 091da45f 编写于 作者: M Matthew Draper

Merge pull request #17322 from vipulnsward/fix-test-warning

Fixed test throwing unused variable warning
......@@ -143,7 +143,7 @@ def test_nil_not_serialized_with_class_constraint
def test_serialized_attribute_should_raise_exception_on_assignment_with_wrong_type
Topic.serialize(:content, Hash)
assert_raise(ActiveRecord::SerializationTypeMismatch) do
topic = Topic.new(content: 'string')
Topic.new(content: 'string')
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册