test/fixtures/people.xml.yaml in purzelrakete-restful-0.2.1 vs test/fixtures/people.xml.yaml in purzelrakete-restful-0.2.2
- old
+ new
@@ -35,11 +35,19 @@
<oldest-pet>
<restful-url type="link">http://example.com:3000/pets/<%= @person.oldest_pet.id %></restful-url>
<species type="integer"><%= @person.oldest_pet.species %></species>
</oldest-pet>
</person>
-
+
+joe_with_birthday:
+ |
+ <?xml version="1.0" encoding="UTF-8"?>
+ <person>
+ <restful-url type="link">http://example.com:3000/people/<%= @person.id %></restful-url>
+ <birthday type="date"><%= @person.birthday.to_s(:db) %></birthday>
+ </person>
+
joe_with_zwiebelleder:
|
<?xml version="1.0" encoding="UTF-8"?>
<person>
<restful-url type="link">http://example.com:3000/people/<%= @person.id %></restful-url>
@@ -100,6 +108,16 @@
<wallet>
<restful-url type="link">http://example.com:3000/wallets/<%= @wallet.id %></restful-url>
<contents>an old photo, 5 euros in coins</contents>
</wallet>
</person>
-
+
+hashy_person:
+ |
+ <?xml version="1.0" encoding="UTF-8"?>
+ <person>
+ <restful-url type="link">http://example.com:3000/people/<%= @person.id %></restful-url>
+ <pets-ages-hash>
+ <mietze>200</mietze>
+ <motze>100</motze>
+ </pets-ages-hash>
+ </person>
\ No newline at end of file