I'm trying to write a cucumber test that ensures there are no errors from Compass CSS.
Error messages are inserted in to the page with the following CSS e.g.:
body:before {
white-space: pre;
font-family: monospace;
content: "Syntax error: Undefined mixin 'horizontal-list'";
}
So I want to write a step that ensures the body:before's content is empty, I've been trying variations around the following:
page.should_not have_css("body:before")
but this gives the error:
xmlXPathCompOpEval: function before not found
Does anyone know how to get hold of :before?