From 1fa4f9243d09b3872a110c1057a828a753822728 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Mon, 13 Aug 2012 00:41:04 -0500 Subject: Rename ForbiddenAttributes exception to ForbiddenAttributesError --- activemodel/test/cases/forbidden_attributes_protection_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel/test/cases/forbidden_attributes_protection_test.rb') diff --git a/activemodel/test/cases/forbidden_attributes_protection_test.rb b/activemodel/test/cases/forbidden_attributes_protection_test.rb index fab28ced0e..f6437333b0 100644 --- a/activemodel/test/cases/forbidden_attributes_protection_test.rb +++ b/activemodel/test/cases/forbidden_attributes_protection_test.rb @@ -20,7 +20,7 @@ end class ActiveModelMassUpdateProtectionTest < ActiveSupport::TestCase test "forbidden attributes cannot be used for mass updating" do params = ProtectedParams.new({ "a" => "b" }) - assert_raises(ActiveModel::ForbiddenAttributes) do + assert_raises(ActiveModel::ForbiddenAttributesError) do Account.new.sanitize_for_mass_assignment(params) end end -- cgit v1.2.3