提交 76d33970 编写于 作者: J Jon Leighton

fix assertion arguments order

上级 5a54bffe
......@@ -181,8 +181,8 @@ def test_with_polymorphic_and_condition
end
def test_with_select
assert_equal Company.find(2).firm_with_select.attributes.size, 1
assert_equal Company.scoped(:includes => :firm_with_select ).find(2).firm_with_select.attributes.size, 1
assert_equal 1, Company.find(2).firm_with_select.attributes.size
assert_equal 1, Company.scoped(:includes => :firm_with_select ).find(2).firm_with_select.attributes.size
end
def test_belongs_to_counter
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册