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
If any user logged into sso application he can directly access the
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
i.e request.session[‘current_user’] = User.find(1)
We did’t solve this issue in stories ,
(FYI we have solved this issue in rspecs using the
main problem is we are unable to access the session variables in the
story (i.e in the when block)
Please give your ideas