aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/unsafe_raw_sql_test.rb
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-30 09:30:48 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2018-09-30 09:30:48 +0900
commit7ea546b5c661b18067ebec9d0badbd3c393964d2 (patch)
treee257369215ec18986845a7cc8d2bfef70d64d1d5 /activerecord/test/cases/unsafe_raw_sql_test.rb
parent445a74e1a953c0b0bddf51b69865d43cce6ea859 (diff)
downloadrails-7ea546b5c661b18067ebec9d0badbd3c393964d2.tar.gz
rails-7ea546b5c661b18067ebec9d0badbd3c393964d2.tar.bz2
rails-7ea546b5c661b18067ebec9d0badbd3c393964d2.zip
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`.
Diffstat (limited to 'activerecord/test/cases/unsafe_raw_sql_test.rb')
0 files changed, 0 insertions, 0 deletions