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:
>>
>>
&
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
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
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
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