aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-06-23 11:54:38 -0400
committerJosé Valim <jose.valim@gmail.com>2010-06-23 18:00:32 +0200
commit0bf3baa6b3d216c6340f8d3b5d0a3ebc093e969a (patch)
tree227e2e5717a4e3c1a494a58e5414ee82a5a0b9a5 /activerecord/test/cases/relations_test.rb
parenteb04408a20628a49296e0859425940b39a83ec63 (diff)
downloadrails-0bf3baa6b3d216c6340f8d3b5d0a3ebc093e969a.tar.gz
rails-0bf3baa6b3d216c6340f8d3b5d0a3ebc093e969a.tar.bz2
rails-0bf3baa6b3d216c6340f8d3b5d0a3ebc093e969a.zip
adding fix for to_xml for ActiveRecord relation object
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/cases/relations_test.rb')
-rw-r--r--activerecord/test/cases/relations_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb
index f2216a1923..4316aa98d4 100644
--- a/activerecord/test/cases/relations_test.rb
+++ b/activerecord/test/cases/relations_test.rb
@@ -39,6 +39,11 @@ class RelationTest < ActiveRecord::TestCase
assert_nothing_raised { Bird.scoped.all.to_yaml }
end
+ def test_to_xml
+ assert_nothing_raised { Bird.scoped.to_xml }
+ assert_nothing_raised { Bird.scoped.all.to_xml }
+ end
+
def test_scoped_all
topics = Topic.scoped.all
assert_kind_of Array, topics