diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-10-27 15:47:56 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-10-27 15:47:56 +0530 |
commit | 80fc29f36f0410c3beabe54c54823f1f335f96f3 (patch) | |
tree | 7803a42bd8ecb096f16cc337aa9f73ca9af94b3e /activerecord | |
parent | 485b99611b22bb77cbc476ecd65d19b59fa719a8 (diff) | |
download | rails-80fc29f36f0410c3beabe54c54823f1f335f96f3.tar.gz rails-80fc29f36f0410c3beabe54c54823f1f335f96f3.tar.bz2 rails-80fc29f36f0410c3beabe54c54823f1f335f96f3.zip |
Adding more checks for instance_writer false
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/mass_assignment_security_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/cases/mass_assignment_security_test.rb b/activerecord/test/cases/mass_assignment_security_test.rb index a47842f5e0..23961918f4 100644 --- a/activerecord/test/cases/mass_assignment_security_test.rb +++ b/activerecord/test/cases/mass_assignment_security_test.rb @@ -231,7 +231,8 @@ class MassAssignmentSecurityTest < ActiveRecord::TestCase def test_protection_against_class_attribute_writers [:logger, :configurations, :primary_key_prefix_type, :table_name_prefix, :table_name_suffix, :pluralize_table_names, - :default_timezone, :schema_format, :lock_optimistically].each do |method| + :default_timezone, :schema_format, :lock_optimistically, :timestamped_migrations, :default_scopes, + :connection_handler, :nested_attributes_options].each do |method| assert_respond_to Task, method assert_respond_to Task, "#{method}=" assert_respond_to Task.new, method |