Skip to content
Browse files

Add test for ActiveRecord::Relation YAML serialization, for #5303 issue

  • Loading branch information...
1 parent c1ae3d7 commit 0c89d316abb7afb6597b8ddaad33b0bba6310411 @iantropov iantropov committed Nov 3, 2013
Showing with 4 additions and 0 deletions.
  1. +4 −0 activerecord/test/cases/yaml_serialization_test.rb
View
4 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 0c89d31

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