Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Story Runner with session problems
Karni Karni
4/2/2008 3:28:00 PM
Hi Friends,
I'm having the session handling issue in story runner.
Small description about my applications and problem
My application was integrated with single sign on (SSO) application.
Both applications are developed in rails (SSO, Normal application (i.e
second))
If any user logged into sso application he can directly access the
second application.
If any one try to access the second application , it will automatically
redirect to sso application (i.e login page).
I have written the stories successfully for sso application.
but when we write the stories to second application we getting the
problems regarding session.
I.e in my application every controller having before_filter
:login_required which was defined in the plugins(in both applications)
We are checking the sessions and cookies in the method
When we call the actions from second application , it checking the
sessions and cookies but it don't find anything
so we are getting the problem
we have tried directly to assign the session variables in given block of
story
i.e request.session['current_user'] = User.find(1)
controller.stub!(:login_required).and_return(@user)
template.stub!(:login_required).and_return(@user)
We did't solve this issue in stories ,
(FYI we have solved this issue in rspecs using the
controller.stub!(:login_required).and_return(@user))
main problem is we are unable to access the session variables in the
story (i.e in the when block)
Please give your ideas
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Story Runner with session problems
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password