[Testbox v1.0.0.00061] Redirection issue

I’m having problem with writing tests;
My test:

`

component extends=“coldbox.system.testing.BaseTestCase” appMapping="/"{
function beforeAll(){
super.beforeAll();

}
function afterAll(){
super.afterAll();
}
function run(){
describe( “Direct Handler”, function(){
beforeEach(function( currentSpec ){
setup();
});

it( “+direct renders”, function(){
var event = execute( event=“direct.index”, renderResults=true );
expect( event.getValue(name=“title”, private=true ) ).toBe( “direct” );
});
});
}
}

`

Test is very simple. I don’t know why execute event is redirecting browser to given event (direct.index in this case )and stays there.
Any ideas?

Best regards

MW

I don’t understand your question

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

I believe running DirectBDDTest.cfc?method=runRemote I should have test results, and instead of that browser redirects to domain.com//direct?method=runRemote

Best regards

MW

W dniu czwartek, 3 kwietnia 2014 20:09:00 UTC+2 użytkownik Luis Majano napisał:

I found solution : setUniqueURLS(false);

Otherwise tests are not working

Best regards
MW

W dniu czwartek, 3 kwietnia 2014 20:09:00 UTC+2 użytkownik Luis Majano napisał:

Be careful of not mixing your apps Application.cfc with your tests. The tests should run under a different Aplication.cfc if not you are mixing concerns.

signature0.jpg

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano