I reworked it with eq but since I need to match formatting that is inherited here the statement looks like this:
      it { @doc.xpath('//testsuite/system-out').first.content.should eq("\n    boo\n  ") }
to be honest it doesn't look so nice to me, I would like to get ur opinion also