Re: [rspec-users] How do I mock out the before :login_required method?

2008-02-13 Thread Wes Shaddix
David Chelimsky wrote: > On Feb 13, 2008 6:24 PM, Wes Shaddix <[EMAIL PROTECTED]> wrote: > >> David Chelimsky wrote: >> >> On Feb 13, 2008 6:03 PM, Wes Shaddix <[EMAIL PROTECTED]> wrote: >> >> >> Jarkko Laine wrote: >> >> &

Re: [rspec-users] How do I mock out the before :login_required method?

2008-02-13 Thread Wes Shaddix
David Chelimsky wrote: On Feb 13, 2008 6:03 PM, Wes Shaddix <[EMAIL PROTECTED]> wrote: Jarkko Laine wrote: On 13.2.2008, at 5.12, Wes Shaddix wrote: I have a GroupController class that inherits from a SecuredController which have a before filter (before_filter :login_re

Re: [rspec-users] How do I mock out the before :login_required method?

2008-02-13 Thread Wes Shaddix
Jarkko Laine wrote: > > On 13.2.2008, at 5.12, Wes Shaddix wrote: > >> I have a GroupController class that inherits from a SecuredController >> which have a before filter (before_filter :login_required). This is >> using the restul authentication system. I want to moc

[rspec-users] How do I mock out the before :login_required method?

2008-02-12 Thread Wes Shaddix
I have a GroupController class that inherits from a SecuredController which have a before filter (before_filter :login_required). This is using the restul authentication system. I want to mock out the login_required method so that my GroupController actions don't get redirected to /sessions/new

[rspec-users] How to mock an association

2008-02-11 Thread Wes Shaddix
I've got a "group" model that has a user_id attribute and a validates_existence_of :user and validates_presence_of :user_id validations. What method(s) do I need to stub on the User mock to intercept those validation calls? My goal is to isolate the Group model from the User model. Thanks Wes