Changeset 6668
- Timestamp:
- 05/06/07 02:03:46 (1 year ago)
- Files:
-
- trunk/activerecord/test/xml_serialization_test.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/test/xml_serialization_test.rb
r6654 r6668 147 147 def test_include_uses_association_name 148 148 xml = authors(:david).to_xml :include=>:hello_posts, :indent=>0 149 assert(xml.include?(%(<hello_posts><post>)) || xml.include?(%(</post></hello-posts>))) 149 assert_match %r{<hello-posts>}, xml 150 assert_match %r{<post>}, xml 151 assert_match %r{<sti-post>}, xml 150 152 end 151 153 end