diff options
author | Sean Griffin <sean@seantheprogrammer.com> | 2016-12-06 07:06:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-06 07:06:32 -0500 |
commit | cf6c2948d5e0e0d40a03f6858179a659a0a6ed7a (patch) | |
tree | 7a45e553072f3b7d262927b6a87f07da9b1252cd /activerecord/test/cases/defaults_test.rb | |
parent | 5a44a01c7b6b3b168978a7c1e3ecd6e83d12679b (diff) | |
parent | b270bc4ad021f051214420de1278627b1924b3b3 (diff) | |
download | rails-cf6c2948d5e0e0d40a03f6858179a659a0a6ed7a.tar.gz rails-cf6c2948d5e0e0d40a03f6858179a659a0a6ed7a.tar.bz2 rails-cf6c2948d5e0e0d40a03f6858179a659a0a6ed7a.zip |
Merge pull request #25451 from kamipo/translate_not_null_violation_to_specific_exception
Translate NOT NULL violation to the specific exception
Diffstat (limited to 'activerecord/test/cases/defaults_test.rb')
-rw-r--r-- | activerecord/test/cases/defaults_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/defaults_test.rb b/activerecord/test/cases/defaults_test.rb index fcaff38f82..6532efcf22 100644 --- a/activerecord/test/cases/defaults_test.rb +++ b/activerecord/test/cases/defaults_test.rb @@ -169,7 +169,7 @@ if current_adapter?(:Mysql2Adapter) assert_nil record.non_null_text assert_nil record.non_null_blob - assert_raises(ActiveRecord::StatementInvalid) { klass.create } + assert_raises(ActiveRecord::NotNullViolation) { klass.create } end end end |