diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-08-13 00:41:04 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-16 23:58:21 -0500 |
commit | 1fa4f9243d09b3872a110c1057a828a753822728 (patch) | |
tree | 9915b652a1bb4ec6bc72b40e44d10c2d1653009a /activerecord/test/cases | |
parent | 4b608c009e155d79532a00b97ac0ec524d7ad849 (diff) | |
download | rails-1fa4f9243d09b3872a110c1057a828a753822728.tar.gz rails-1fa4f9243d09b3872a110c1057a828a753822728.tar.bz2 rails-1fa4f9243d09b3872a110c1057a828a753822728.zip |
Rename ForbiddenAttributes exception to ForbiddenAttributesError
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/forbidden_attributes_protection_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/forbidden_attributes_protection_test.rb b/activerecord/test/cases/forbidden_attributes_protection_test.rb index cf462297ef..89e9de261a 100644 --- a/activerecord/test/cases/forbidden_attributes_protection_test.rb +++ b/activerecord/test/cases/forbidden_attributes_protection_test.rb @@ -26,7 +26,7 @@ end class ForbiddenAttributesProtectionTest < ActiveRecord::TestCase def test_forbidden_attributes_cannot_be_used_for_mass_assignment params = ProtectedParams.new(first_name: 'Guille', gender: 'm') - assert_raises(ActiveModel::ForbiddenAttributes) do + assert_raises(ActiveModel::ForbiddenAttributesError) do Person.new(params) end end |