Permalink
Browse files

Remove configuration test for config.activerecord.whitelist_attributes

  • Loading branch information...
1 parent 9881dbb commit 7d3be7e0b52c9f8d32a3b0bb958db0d137c84479 @guilleiguaran guilleiguaran committed Jul 22, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −13 railties/test/application/configuration_test.rb
@@ -358,19 +358,6 @@ def index
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

0 comments on commit 7d3be7e

Please sign in to comment.