Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread Andrew Premdas
2009/10/14 Joaquin Rivera Padron > hello there, > how do you tipically spec private methods? The thing is Ï have something > like this: > > def some_method >complex_method + other_complex_methods > end > > private > def complex_method... > def other_complex_methods ... > > and the two complex

Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread Stephen Eley
On Wed, Oct 14, 2009 at 4:47 PM, Ashley Moran wrote: > > I don't think Scott meant to imply that private methods are bad, only that > complex ones private methods are. This is a good point. I was overgeneralizing the response, despite the question being somewhat more specific. My bad. (It's a

Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread Stephen Eley
On Thu, Oct 15, 2009 at 3:59 AM, Andrew Premdas wrote: > > You can take this further and state that no public method should ever do > anything, it should just contain calls to private methods which document how > the public method works. I expect most would consider that going to far ... > sigh O

Re: [rspec-users] rspec-rails question

2009-10-15 Thread Brian Cardarella
Hey Dave, Sorry I didn't see your last post here until now. I've been using 1.2.9.rc1 for over a month now and it is working great. I haven't noticed any quirks. - Brian On Sep 28, 3:20 am, David Chelimsky wrote: > Glad to hear it. Please let me know how the 1.2.9.rc1 gems are working > othe

Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread Andrew Premdas
2009/10/15 Stephen Eley > On Thu, Oct 15, 2009 at 3:59 AM, Andrew Premdas > wrote: > > > > You can take this further and state that no public method should ever do > > anything, it should just contain calls to private methods which document > how > > the public method works. I expect most would

Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread J. B. Rainsberger
On Wed, Oct 14, 2009 at 15:36, Joaquin Rivera Padron wrote: > hello there, > how do you tipically spec private methods? The thing is Ï have something > like this: > > def some_method >    complex_method + other_complex_methods > end > > private > def complex_method... > def other_complex_methods .

Re: [rspec-users] spec-ing private methods?

2009-10-15 Thread Zach Dennis
Hello Joaquin, On Wed, Oct 14, 2009 at 5:22 PM, Joaquin Rivera Padron wrote: > hello > > 2009/10/14 Ashley Moran >> >> On 14 Oct 2009, at 20:49, Scott Taylor wrote: >>> >>> On Oct 14, 2009, at 3:36 PM, Joaquin Rivera Padron wrote: >>> private def complex_method... def other_comple

[rspec-users] Help me with Controllers spec

2009-10-15 Thread Elza
I am starting with Rspec and I am having some errors in the Get/index Can someone help me with this? describe BrandsController, 'GET /index' do ## should_require_login :get, :index ##