Actually, it was patched in June. The patch author chose to use .send. http://github.com/technoweenie/restful-authentication/commit/8307820bee893b2ebbbf990b947a878ebe8b7624
Cheers, Tim. On Tue, Sep 2, 2008 at 3:15 PM, David Chelimsky <[EMAIL PROTECTED]>wrote: > On Mon, Sep 1, 2008 at 6:22 PM, Tim Haines <[EMAIL PROTECTED]> wrote: > > Hi there, > > > > I've noticed something a little odd with the session_controller specs > that > > are generated from the rails plugin restful_authentication. When they're > > run with all the other app specs (i.e. when I first fire up autospec) the > > specs all pass. However, if I touch the session_controller_spec file so > > only the session_controller specs are run, some fail with the error > message > > protected method `logged_in?' called for #<SessionsController:0x19100e0> > > > > Can anyone explain why this might be or where I should start digging to > try > > and resolve this? > > logged_in? is protected in the module AuthenticatedSystem. Chances are > that you've got a code example that's doing this: > > controller.logged_in? > > instead of this: > > controller.send(:logged_in?) > > and something that's not getting loaded when you run just > sessions_controller_spec is including AuthenticatedSystem into the > example group directly. > > > > > Cheers, > > > > Tim. > > > > _______________________________________________ > > 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 >
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users