Re: [rspec-users] require StepGroup problem

2008-08-14 Thread Gaston Ramos
El mié, 13 de ago de 2008, a las 07:11:49 -0600, Pat Maddox dijo: > On Wed, Aug 13, 2008 at 12:18 PM, Gaston Ramos <[EMAIL PROTECTED]> wrote: > > Hi guys, I'm trying to run this story http://pastie.org/252361 > > You need to fully-qualify the class name, which

[rspec-users] require StepGroup problem

2008-08-13 Thread Gaston Ramos
Hi guys, I'm trying to run this story http://pastie.org/252361 and I get the following error: http://pastie.org/252367 the helper file is: http://pastie.org/252368 I think that I'm missing a require somewhere, can anybody help me? Any thoughts? Versions: rspec 1.1.4 ruby on rails 2.1 -- "Most

[rspec-users] Refactoring's code needs refactoring's specs?

2008-06-09 Thread Gaston Ramos
Hi guys, I have one question: When refactoring the working code I need or should refactoring the specs too? My old code is: http://pastie.org/private/gpskgtavm4yzutanq1ro3w My new refactored code: http://pastie.org/private/2emgi1hr5iga3m9jib4q and the specs that are still passing without refa

Re: [rspec-users] Problems with view spec and mocking will_paginate

2008-06-09 Thread Gaston Ramos
ts) > post_99.stub!(:comments).and_return(comments) > > Matthias > > Am 06.06.2008 um 23:48 schrieb Gaston Ramos: > >> Hi all, I have some failures that not I don't understand >> >> this the pastie with index.erb.html >> http://pastie.org/private/zg

[rspec-users] Problems with view spec and mocking will_paginate

2008-06-06 Thread Gaston Ramos
Hi all, I have some failures that not I don't understand this the pastie with index.erb.html http://pastie.org/private/zgohh6dcts04wpfagfgz5q and this is the pastie for view's spec: http://pastie.org/210485 and the failure: 1) ActionView::TemplateError in '/posts/index.html.erb should render li

Re: [rspec-users] Do you think it would look cleaner?

2007-12-29 Thread Gaston Ramos
El sáb, 29 de dic de 2007, a las 02:00:25 -0500, Andrew WC Brown dijo: > I was looking over some of my specs. > I was thinking that the following: > > @game.should_receive(:name).and_return('The Battle for Blaze') > @game.should_receive(:people).and_return(500) > @game.should_receive(:activate

Re: [rspec-users] Problems with array mock

2007-08-06 Thread Gaston Ramos
El lun, 06 de ago de 2007, a las 11:52:28 -0500, David Chelimsky dijo: > On 8/6/07, Gaston Ramos <[EMAIL PROTECTED]> wrote: > > > > Hi everyone, > > > > I'm trying this in my helper spec and it didn't work: > > > > @curr_odontogram.should_

[rspec-users] Problems with array mock

2007-08-06 Thread Gaston Ramos
Hi everyone, I'm trying this in my helper spec and it didn't work: @curr_odontogram.should_receive('photos[1]').and_return(@photo) and the error is: SyntaxError in 'PersonHelper Deberia devolverme un link para eliminar una foto' compile error /home/gramos/src/rails/r-dental/config/../vendor/pl