diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-06 02:36:33 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-06 02:36:33 +0000 |
commit | 393e98a85999878d832eaba2da42a8805aff54e8 (patch) | |
tree | 7973683824005bd8cd2d41488b28758194991f37 /activerecord/test | |
parent | d1abe806c54a0c0c845476715e47c52ca48cabab (diff) | |
download | rails-393e98a85999878d832eaba2da42a8805aff54e8.tar.gz rails-393e98a85999878d832eaba2da42a8805aff54e8.tar.bz2 rails-393e98a85999878d832eaba2da42a8805aff54e8.zip |
Fixed Base#update_attribute to be indifferent to whether a string or symbol is used to describe the name
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@341 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 07740547cd..ccd9152e60 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -367,6 +367,9 @@ class BasicsTest < Test::Unit::TestCase assert !Topic.find(1).approved? Topic.find(1).update_attribute("approved", true) assert Topic.find(1).approved? + + Topic.find(1).update_attribute(:approved, false) + assert !Topic.find(1).approved? end def test_mass_assignment_protection |