[rspec-users] step definitons to check login
James Byrne
lists at ruby-forum.com
Wed Dec 17 09:45:42 EST 2008
Andrew Premdas wrote:
> Doing this for Restful-Authentication I add the following in
> features/support/env.rb
>
> # Make visible for testing
> ApplicationController.send(:public, :logged_in?, :current_user,
> :authorized?)
>
Forgive my ignorance but would you do me the favour of explaining
exactly what this does? I can guess but I would rather have a clear
understanding of how this construct works so that I can generalize its
application.
Regards,
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list