aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-11-28 20:12:49 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-11-28 20:12:49 +0000
commita33007d31a539ef5365ee13455f386c4e0b658fe (patch)
tree5da5437d968fd729f764e983e4467aa7e9a148ff /activerecord/test
parentf1d6a0e4d25ad67fead3ed215495adcf08332c80 (diff)
downloadrails-a33007d31a539ef5365ee13455f386c4e0b658fe.tar.gz
rails-a33007d31a539ef5365ee13455f386c4e0b658fe.tar.bz2
rails-a33007d31a539ef5365ee13455f386c4e0b658fe.zip
attr_readonly uses a set of strings instead of an array of symbols internally. References #10300.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8230 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/base_test.rb2
-rw-r--r--activerecord/test/locking_test.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index a95ee7cd8a..6fac80b2c4 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -856,7 +856,7 @@ class BasicsTest < Test::Unit::TestCase
end
def test_readonly_attributes
- assert_equal [ :title ], ReadonlyTitlePost.readonly_attributes
+ assert_equal Set.new([ 'title' ]), ReadonlyTitlePost.readonly_attributes
post = ReadonlyTitlePost.create(:title => "cannot change this", :body => "changeable")
post.reload
diff --git a/activerecord/test/locking_test.rb b/activerecord/test/locking_test.rb
index b0d6f8417f..97fbfaaeb1 100644
--- a/activerecord/test/locking_test.rb
+++ b/activerecord/test/locking_test.rb
@@ -99,7 +99,7 @@ class OptimisticLockingTest < Test::Unit::TestCase
end
def test_readonly_attributes
- assert_equal [ :first_name ], ReadonlyFirstNamePerson.readonly_attributes
+ assert_equal Set.new([ 'first_name' ]), ReadonlyFirstNamePerson.readonly_attributes
p = ReadonlyFirstNamePerson.create(:first_name => "unchangeable name")
p.reload