Merge pull request #3448 from arunagw/instance_disable_fix

Test fix Allow instances to disable record_timestamps
This commit is contained in:
José Valim
2011-10-27 03:26:47 -07:00

View File

@@ -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, :record_timestamps].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