diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-07-22 11:58:25 -0500 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2012-09-16 23:58:20 -0500 |
commit | 7d3be7e0b52c9f8d32a3b0bb958db0d137c84479 (patch) | |
tree | a2aac2da0f971c6f5c90d07c36ae0bef834391dc /railties/test | |
parent | 9881dbb8421ba7c2c3d3b606ff3812f229bb0967 (diff) | |
download | rails-7d3be7e0b52c9f8d32a3b0bb958db0d137c84479.tar.gz rails-7d3be7e0b52c9f8d32a3b0bb958db0d137c84479.tar.bz2 rails-7d3be7e0b52c9f8d32a3b0bb958db0d137c84479.zip |
Remove configuration test for config.activerecord.whitelist_attributes
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/configuration_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/railties/test/application/configuration_test.rb b/railties/test/application/configuration_test.rb index 039b08c723..cac9fa3525 100644 --- a/railties/test/application/configuration_test.rb +++ b/railties/test/application/configuration_test.rb @@ -358,19 +358,6 @@ module ApplicationTests assert_equal "utf-16", ActionDispatch::Response.default_charset end - test "sets all Active Record models to whitelist all attributes by default" do - add_to_config <<-RUBY - config.active_record.whitelist_attributes = true - RUBY - - require "#{app_path}/config/environment" - - klass = Class.new(ActiveRecord::Base) - - assert_equal ActiveModel::MassAssignmentSecurity::WhiteList, klass.active_authorizers[:default].class - assert_equal [], klass.active_authorizers[:default].to_a - end - test "registers interceptors with ActionMailer" do add_to_config <<-RUBY config.action_mailer.interceptors = MyMailInterceptor |