提交 dec2c4f4 编写于 作者: S Subba Rao Pasupuleti 提交者: José Valim

renaming test name to fix accidently override [#5076 state:resolved]

Signed-off-by: NJosé Valim <jose.valim@gmail.com>
上级 99cdea7c
......@@ -548,7 +548,7 @@ def test_find_or_initialize
assert the_client.new_record?
end
def test_find_or_create
def test_find_or_create_updates_size
number_of_clients = companies(:first_firm).clients.size
the_client = companies(:first_firm).clients.find_or_create_by_name("Yet another client")
assert_equal number_of_clients + 1, companies(:first_firm, :reload).clients.size
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册