On Wed, Nov 23, 2011 at 5:55 PM, Alex Whiteland <li...@ruby-forum.com> wrote: >> that is added to cucumber's world does not have access to your >> application >> controller's @current_user variable. > > So, I understand this. But how I can avoid this defect? > > If I paste def is_admin? into application_controller near current_user > method, I wouldn't can World(ApplicationController). If I copy > current_user code to sessions_helper, then session[:user_id] wouldn't > work. >
Please don't have this discussion here. You're on the wrong list. Use the Cucumber list. > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > rspec-users mailing list > rspec-users@rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users > _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users