talios/halbuilder — pull request #25 by jcassee (2012-04-25 15:47:45+00:00)
Title: Make embedded resources conform to HAL spec

As I noticed in issue #24, rendered embedded resources do not conform to the HAL spec. This pull request contains my attempt to fix that.

There is one test that still fails: `ResourceTest.testUndeclaredResourceNamespace`. This test checks that `Resource.withSubresource` will not accept a subresource that uses an undeclared namespace. There must be an existing way of throwing an exception in this case, but I can't seem to find it. Can you tell me where to look?

If you accept this pull request in its current form, please follow up with a fix for the failing test.