Permalink
Browse files

Adding more checks for instance_writer false

  • Loading branch information...
1 parent 485b996 commit 80fc29f36f0410c3beabe54c54823f1f335f96f3 @arunagw arunagw committed Oct 27, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 activerecord/test/cases/mass_assignment_security_test.rb
@@ -231,7 +231,8 @@ def test_create_with_bang_with_without_protection_with_attr_protected_attributes
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

0 comments on commit 80fc29f

Please sign in to comment.