Skip to content
Browse files

Remove unnecessary loop

  • Loading branch information...
1 parent 495daef commit 680144d230ef13112c3d297101e4cff27e81d204 @vipulnsward vipulnsward committed Sep 13, 2013
Showing with 2 additions and 5 deletions.
  1. +2 −5 activerecord/test/cases/serialized_attribute_test.rb
View
7 activerecord/test/cases/serialized_attribute_test.rb
@@ -243,10 +243,7 @@ def test_serialized_column_should_not_be_wrapped_twice
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

0 comments on commit 680144d

Please sign in to comment.
Something went wrong with that request. Please try again.