[Rails] rspec doesn't skip_filter?

2011-06-07 Thread Mauro
I'm using devise and in application_controller I have before_filter :authenticate! In sector_controller I have: skip_filter :authenticate_user!, :only = [:index, :search_categories_by_sector] When I run rspec it says: undefined method authenticate!, even for index action. But I' set skip_filter

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Colin Law
On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote: I'm using devise and in application_controller I have before_filter :authenticate! In sector_controller I have: skip_filter :authenticate_user!, :only = [:index, :search_categories_by_sector] When I run rspec it says: undefined method

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Mauro
On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote: I'm using devise and in application_controller I have before_filter :authenticate! In sector_controller I have: skip_filter :authenticate_user!, :only = [:index,

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Colin Law
On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote: On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote: I'm using devise and in application_controller I have before_filter :authenticate! In sector_controller I have:

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Mauro
On 7 June 2011 15:07, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote: On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote: I'm using devise and in application_controller I have

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Colin Law
On 7 June 2011 17:12, Mauro mrsan...@gmail.com wrote: On 7 June 2011 15:07, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:53, Mauro mrsan...@gmail.com wrote: On 7 June 2011 14:48, Colin Law clan...@googlemail.com wrote: On 7 June 2011 15:45, Mauro mrsan...@gmail.com wrote: I'm

Re: [Rails] rspec doesn't skip_filter?

2011-06-07 Thread Mauro
On 7 June 2011 16:33, Colin Law clan...@googlemail.com wrote: I haven't used Devise though What to you use to authenticate?  Could it be due to the fact that you are using InheritedResources? I think so, I'll do more testing. -- You received this message because you are subscribed to