« Return to Thread: Spec'ing ApplicationController

Spec'ing ApplicationController

by sbellware :: Rate this Message:

Reply to Author | View in Thread

Folks,

I'd like to spec the behaviors that I'm adding to ApplicationController.  Specifically, I'm adding:

def authenticated?
  session[:username] != nil
end

I described ApplicationController, but couldn't figure out how to call the authenticated method.  I'm probably going about this quite wrongly and would appreciate any hints?

Thanks,
Scott

 « Return to Thread: Spec'ing ApplicationController