diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-09-13 03:32:34 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-09-13 03:32:34 +0530 |
commit | 680144d230ef13112c3d297101e4cff27e81d204 (patch) | |
tree | bc36ab96eb6e69137199daf090251ca7daba2267 /activerecord/test/cases | |
parent | 495daef06141706c363df3d42ca1683706f85735 (diff) | |
download | rails-680144d230ef13112c3d297101e4cff27e81d204.tar.gz rails-680144d230ef13112c3d297101e4cff27e81d204.tar.bz2 rails-680144d230ef13112c3d297101e4cff27e81d204.zip |
Remove unnecessary loop
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/serialized_attribute_test.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb index 24c5f330a1..7fe065ee88 100644 --- a/activerecord/test/cases/serialized_attribute_test.rb +++ b/activerecord/test/cases/serialized_attribute_test.rb @@ -243,10 +243,7 @@ class SerializedAttributeTest < ActiveRecord::TestCase myobj = MyObject.new('value1', 'value2') Topic.create(content: myobj) Topic.create(content: myobj) - - Topic.all.each do |topic| - type = Topic.column_types["content"] - assert !type.instance_variable_get("@column").is_a?(ActiveRecord::AttributeMethods::Serialization::Type) - end + type = Topic.column_types["content"] + assert !type.instance_variable_get("@column").is_a?(ActiveRecord::AttributeMethods::Serialization::Type) end end |