src code

instance method SpahQL#assert

SpahQL#assert(query) → Boolean

Runs an assertion query against every item in this set. Returns false if any one item fails to meet the assertion.

 select("/foo/foo").first().assert("/foo") // Is exactly the same as just asserting /foo/foo/foo.