Re: [rspec-users] Spec'ing ApplicationController

2007-08-27 Thread Priit Tamboom
On 8/28/07, David Chelimsky <[EMAIL PROTECTED]> wrote: > On 8/14/07, sbellware <[EMAIL PROTECTED]> wrote: > > > > Folks, > > > > I'd like to spec the behaviors that I'm adding to ApplicationController. > > Specifically, I'm adding: > > > > def authenticated? > > session[:username] != nil > > end

Re: [rspec-users] Spec'ing ApplicationController

2007-08-27 Thread David Chelimsky
On 8/14/07, sbellware <[EMAIL PROTECTED]> wrote: > > 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

[rspec-users] Spec'ing ApplicationController

2007-08-27 Thread sbellware
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 wro