aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-10-20 03:31:31 +1030
committerMatthew Draper <matthew@trebex.net>2014-10-20 03:31:31 +1030
commit091da45fd714848c76c710d04e17d33a24ccf3fd (patch)
treea4515f9f46f259711fec26ecfc183efb366d96e5 /activerecord
parent61af5cc95dd10e16d9261d88bf589f441dfe9d6a (diff)
parent6d703b5700ae439f8f6e16a43aae8fe77fc64230 (diff)
downloadrails-091da45fd714848c76c710d04e17d33a24ccf3fd.tar.gz
rails-091da45fd714848c76c710d04e17d33a24ccf3fd.tar.bz2
rails-091da45fd714848c76c710d04e17d33a24ccf3fd.zip
Merge pull request #17322 from vipulnsward/fix-test-warning
Fixed test throwing unused variable warning
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/serialized_attribute_test.rb2
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