> 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. -- Posted via http://www.ruby-forum.com/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users