On May 11, 2011, at 4:10 PM, Chris Habgood wrote:
> I just started using rspec. I have controllers that inherit from an admin
> controller. If I modify them to inherit from applicationcontroller the rspec
> test works. If I inherit from admincontroller i get "" back for a new
> template. Is
On Thu, May 12, 2011 at 10:32 AM, Chris Habgood wrote:
> I have this in my admin controller:
>
> before_filter :login_required
> before_filter :admin_required
>
> def admin_required
> current_user.is_admin?
> end
>
> ___
> rspec-users ma
On Tue, May 17, 2011 at 11:18 PM, Justin Ko wrote:
>
>
> On Thu, May 12, 2011 at 10:32 AM, Chris Habgood wrote:
>
>> I have this in my admin controller:
>>
>> before_filter :login_required
>> before_filter :admin_required
>>
>> def admin_required
>> current_user.is_admin?
>> end
>
I have this in my admin controller:
before_filter :login_required
before_filter :admin_required
def admin_required
current_user.is_admin?
end
___
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/
I just started using rspec. I have controllers that inherit from an admin
controller. If I modify them to inherit from applicationcontroller the
rspec test works. If I inherit from admincontroller i get "" back for a new
template. Is there something I am missing to get this to work? The pro