diff options
author | Vipul A M <vipulnsward@gmail.com> | 2014-10-19 22:20:59 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2014-10-19 22:20:59 +0530 |
commit | 6d703b5700ae439f8f6e16a43aae8fe77fc64230 (patch) | |
tree | 7b95d7c277d83992abcc7ce6a6ab3f302e9751c5 | |
parent | 0dfc4fa1774296ebbbf891f101e2a39225af6502 (diff) | |
download | rails-6d703b5700ae439f8f6e16a43aae8fe77fc64230.tar.gz rails-6d703b5700ae439f8f6e16a43aae8fe77fc64230.tar.bz2 rails-6d703b5700ae439f8f6e16a43aae8fe77fc64230.zip |
Fixed test throwing unused variable warning
-rw-r--r-- | activerecord/test/cases/serialized_attribute_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/serialized_attribute_test.rb b/activerecord/test/cases/serialized_attribute_test.rb index 46d4da53df..66f345d805 100644 --- a/activerecord/test/cases/serialized_attribute_test.rb +++ b/activerecord/test/cases/serialized_attribute_test.rb @@ -143,7 +143,7 @@ class SerializedAttributeTest < ActiveRecord::TestCase def test_serialized_attribute_should_raise_exception_on_assignment_with_wrong_type Topic.serialize(:content, Hash) assert_raise(ActiveRecord::SerializationTypeMismatch) do - topic = Topic.new(content: 'string') + Topic.new(content: 'string') end end |