flatiron/plates — pull request #81 by pgte (2012-08-23 17:49:31+00:00)
Title: Multimap

Several fixes related to mapping the same attribute name and value, using collections and nesting.

* Fixed the case where to mappings for the same attribute and value existed where one changed the tag content and the other updated the attribute. In this case, only when the attribute one was declared last it worked. Changing the order of the declarations made it work. The fix orders the mappings so that the order of the declaration doesn't matter.

* Testing if there are conflicting mappings (updating the body for the same attribute and same value).

* Nested objects work with map directives.

* Arrays now work with map directives.

* Added test for two attributes update on the same tag.

* Added test for two attributes update plus body update on the same tag.

Added test cases for all these fixes.