Given this code. If I run it individually either by executing the class itself or clicking on this class in the runner.cfm UI. It works but when I execute all of the test in the runner it fails with the FORM.cost being 0 rather than 1.
describe( "profit_calculator.cfm", function(){
// before each spec in THIS suite group
beforeEach(function(){
FORM.cost = 1;
savecontent variable='result' { include '/profit_calculator.cfm'; };
});
// after each spec in THIS suite group
afterEach(function(){
});
it("should render' ", function(){
expect( result ).notToBe( '', 'result is empty' );
});
});