[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(:

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

Re: [rspec-users] [BDD] View specs and cucumber -- duplication of effort?

2009-11-05 Thread Chuck van der Linden
On Nov 4, 5:30 pm, David Chelimsky wrote: > On Wed, Nov 4, 2009 at 3:36 PM, Stephen Eley wrote: > > On Wed, Nov 4, 2009 at 3:24 PM, Andrew Premdas wrote: > > > > Personally I now think nested steps are evil - but thats another story :) > > > It sounds like an entertaining one. I'd love to hear

[rspec-users] [Rails] render_to_string in a controller fails under RSpec

2009-11-05 Thread Joel Young
I'm using render_to_string in a controller to send some JSON data with an HTML fragment. Unfortunately, it seems that rspec-rails breaks that by intercepting render and simply recording that a render was called. Using rspec-rails and rspec versions 1.2.9, I've tracked it down to lib/spec/rails/exam

[rspec-users] [WEBSITE] runners.html page out of date

2009-11-05 Thread Conrad Taylor
Hi, the following page needs to be updated to use spork instead of spec_server: http://rspec.info/rails/runners.html ___ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users

Re: [rspec-users] [Rails] render_to_string in a controller fails under RSpec

2009-11-05 Thread David Chelimsky
On Thu, Nov 5, 2009 at 5:23 PM, Joel Young wrote: > I'm using render_to_string in a controller to send some JSON data with > an HTML fragment. Unfortunately, it seems that rspec-rails breaks that > by intercepting render and simply recording that a render was called. > Using rspec-rails and rspec

Re: [rspec-users] [WEBSITE] runners.html page out of date

2009-11-05 Thread Tom Stuart
On 5 Nov 2009, at 11:59, Conrad Taylor wrote: Hi, the following page needs to be updated to use spork instead of spec_server: Incidentally, I strongly second David's suggestion that rspec.info be turned into, for want of a better word, "brochureware" like cukes.info, with all of the actual