[rspec-users] cucumber is_admin? testing

aslak hellesoy aslak.hellesoy at gmail.com
Wed Nov 23 14:21:52 EST 2011

On Wed, Nov 23, 2011 at 5:55 PM, Alex Whiteland <lists at 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users

More information about the rspec-users mailing list