flatiron/resourceful — pull request #122 by jsdalton (2012-10-19 18:51:39+00:00)
Title: Issue #121: Prevent attribute from being set as property on resource if ...

...property is not defined

Per my comments on the issue, I'm not sure whether this behavior is desired or unintentional. The fix was easy though -- I just added a guard in the constructor that only sets `_properties[key]` if key is in Factory.properties, with an exception for the `_rev` attribute.

A few tests were (ab)using the ability to save arbitrary values so I defined those explicitly to get them working. This illustrates that the new behavior is backwards incompatible and could break for others who are setting and saving arbitrary attributes in this manner.