提交 cbc2e798 编写于 作者: J Jon Leighton

Merge pull request #11049 from neerajdotname/no-need-of-large-number

fix bad test by making number that fits for integer
......@@ -402,9 +402,13 @@ def test_parent_instance_should_find_child_instance_using_child_instance_id_when
end
def test_raise_record_not_found_error_when_invalid_ids_are_passed
# delete all interest records to ensure that hard coded invalid_id(s)
# are indeed invalid.
Interest.delete_all
man = Man.create!
invalid_id = 2394823094892348920348523452345
invalid_id = 245324523
assert_raise(ActiveRecord::RecordNotFound) { man.interests.find(invalid_id) }
invalid_ids = [8432342, 2390102913, 2453245234523452]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册