Permalink
Browse files

Merge pull request #12749 from iantropov/issue_5303

Add test for ActiveRecord::Relation YAML serialization, for #5303 issue
  • Loading branch information...
2 parents dbc6ce3 + 0c89d31 commit 98cff28d3f7811ac970e06191a2f7892d2f57155 @rafaelfranca rafaelfranca committed Nov 11, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/cases/yaml_serialization_test.rb
@@ -43,4 +43,8 @@ def test_psych_roundtrip_new_object
t = Psych.load Psych.dump topic
assert_equal topic.attributes, t.attributes
end
+
+ def test_active_record_relation_serialization
+ [Topic.all].to_yaml
+ end
end

0 comments on commit 98cff28

Please sign in to comment.