diff options
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 103f9f7271..e17b2a1b57 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -67,13 +67,6 @@ end class BasicsTest < Test::Unit::TestCase fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics - # whiny_protected_attributes is turned off since several tests were - # not written with it in mind, and would otherwise raise exceptions - # as an irrelevant side-effect. - def setup - ActiveRecord::Base.whiny_protected_attributes = false - end - def test_table_exists assert !NonExistentTable.table_exists? assert Topic.table_exists? @@ -861,17 +854,6 @@ class BasicsTest < Test::Unit::TestCase assert_equal [ :name, :address, :phone_number ], TightDescendant.accessible_attributes end - def test_whiny_protected_attributes - ActiveRecord::Base.whiny_protected_attributes = true - assert_raise(ActiveRecord::ProtectedAttributeAssignmentError) do - LoosePerson.create!(:administrator => true) - end - ActiveRecord::Base.whiny_protected_attributes = false - assert_nothing_raised do - LoosePerson.create!(:administrator => true) - end - end - def test_readonly_attributes assert_equal [ :title ], ReadonlyTitlePost.readonly_attributes |