aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-02 20:20:46 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-02 20:20:46 +0000
commitc7c3994d31322a00ab591b9365da5ca63dccaa90 (patch)
tree21618f5b3e367645b1b29d12c90284b5ea4ab6d8 /activerecord/test
parentea433f15bf98a426239e985220393f63fa6d56c3 (diff)
downloadrails-c7c3994d31322a00ab591b9365da5ca63dccaa90.tar.gz
rails-c7c3994d31322a00ab591b9365da5ca63dccaa90.tar.bz2
rails-c7c3994d31322a00ab591b9365da5ca63dccaa90.zip
Dynamically generate reader methods for serialized attributes. Closes #6362.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5416 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rwxr-xr-xactiverecord/test/base_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb
index e5eabc57ab..4afeb52a87 100755
--- a/activerecord/test/base_test.rb
+++ b/activerecord/test/base_test.rb
@@ -1476,7 +1476,7 @@ class BasicsTest < Test::Unit::TestCase
private
def assert_readers(model, exceptions)
- expected_readers = Set.new(model.column_names - (model.serialized_attributes.keys + ['id']))
+ expected_readers = Set.new(model.column_names - ['id'])
expected_readers += expected_readers.map { |col| "#{col}?" }
expected_readers -= exceptions
assert_equal expected_readers, model.read_methods