Re: [rspec-users] Stub named_scope with params

2009-11-05 Thread Zach Dennis
On Thu, Nov 5, 2009 at 5:10 PM, Elza Di Sirio wrote: > I need some help to stub this method of my controller > �...@users = >         User.accessible_by(current_user).paginate( >           :conditions => conditions.to_sql, >           :include    => :user_channels, >           :order      => build

[rspec-users] Stub named_scope with params

2009-11-05 Thread Elza Di Sirio
I need some help to stub this method of my controller @users = User.accessible_by(current_user).paginate( :conditions => conditions.to_sql, :include=> :user_channels, :order => build_sort_conditions(:name, true), :page => get_param(: