mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Adding more checks for instance_writer false
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user