aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test/cases
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-27 11:42:52 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-27 11:42:52 -0700
commit6d7477e87d637f5dea81c1a0d0fac114bbaa26a2 (patch)
treec52cd2183c3686d8e075928662964acaae11a7fe /activemodel/test/cases
parente16ad2db8c6e495fbbe3c11b0dde138b937cb42d (diff)
parent468939297db91f8e595a93c94a16e23b26eee61a (diff)
downloadrails-6d7477e87d637f5dea81c1a0d0fac114bbaa26a2.tar.gz
rails-6d7477e87d637f5dea81c1a0d0fac114bbaa26a2.tar.bz2
rails-6d7477e87d637f5dea81c1a0d0fac114bbaa26a2.zip
Merge pull request #11149 from strzalek/remove-protected-attrs
Remove deprecated attr_protected/accessible
Diffstat (limited to 'activemodel/test/cases')
-rw-r--r--activemodel/test/cases/deprecated_mass_assignment_security_test.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/activemodel/test/cases/deprecated_mass_assignment_security_test.rb b/activemodel/test/cases/deprecated_mass_assignment_security_test.rb
deleted file mode 100644
index c1fe8822cd..0000000000
--- a/activemodel/test/cases/deprecated_mass_assignment_security_test.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-require 'cases/helper'
-require 'models/project'
-
-class DeprecatedMassAssignmentSecurityTest < ActiveModel::TestCase
- def test_attr_accessible_raise_error
- assert_raise RuntimeError, /protected_attributes/ do
- Project.attr_accessible :username
- end
- end
-
- def test_attr_protected_raise_error
- assert_raise RuntimeError, /protected_attributes/ do
- Project.attr_protected :username
- end
- end
-end