Make `test_initialize_with_invalid_attribute` work correctly
Originally specified attributes were only normal values, and `ActiveRecord::MultiparameterAssignmentErrors` did not occur. In addition, an assertion is performed only on rescue, even if an exception does not occur, the test passes. To avoid this use `assert_raise`.
Showing
想要评论请 注册 或 登录