Skip to content
This repository
Browse code

More checks for instance writers.

  • Loading branch information...
commit 95d9c120d3bdf54173a10b25bbcbf1138815ff2e 1 parent a9863d6
Arun Agrawal authored October 27, 2011
3  activerecord/test/cases/mass_assignment_security_test.rb
@@ -232,7 +232,8 @@ def test_create_with_bang_with_without_protection_with_attr_protected_attributes
232 232
   def test_protection_against_class_attribute_writers
233 233
     [:logger, :configurations, :primary_key_prefix_type, :table_name_prefix, :table_name_suffix, :pluralize_table_names,
234 234
      :default_timezone, :schema_format, :lock_optimistically, :timestamped_migrations, :default_scopes,
235  
-     :connection_handler, :nested_attributes_options].each do |method|
  235
+     :connection_handler, :nested_attributes_options, :_attr_readonly, :attribute_types_cached_by_default,
  236
+     :attribute_method_matchers, :time_zone_aware_attributes, :skip_time_zone_conversion_for_attributes].each do |method|
236 237
       assert_respond_to  Task, method
237 238
       assert_respond_to  Task, "#{method}="
238 239
       assert_respond_to  Task.new, method

0 notes on commit 95d9c12

Please sign in to comment.
Something went wrong with that request. Please try again.