If a step fails the scenario has a class name of "passed"

Hi,

Post-story HTML creation if a step within a scenario fails
(class=“failed”) that scenario still passes ( class=“passed”).

We have added some javascript to rspec.js

var rspec = {
load : function() {
$$(".passed").each (
function (passedElement) {
if (passedElement.select(".failed").length > 0) {
Element.removeClassName(passedElement,“passed”);
Element.addClassName(passedElement,“failed”);
}
}
)
}
}

Event.observe(window,“load”,rspec.load);

Aidy

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs