[rspec-users] Do you think it would look cleaner?
gramos at rectorado.unl.edu.ar
Sat Dec 29 10:44:31 EST 2007
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')
> Would it look cleaner if I could do this instead?
> :name => 'The Battle for Blaze'
> :people => 5000000
> :activated => true)
Hi Andrew, I think the first option is more clearer and more expresive
than then 2nd. one.
> rspec-users mailing list
> rspec-users at rubyforge.org
"I always thought Smalltalk would beat Java, I just didn't know it would be
called 'Ruby' when it did."
-- Kent Beck
GNU/Linux Counter user #450312
No a la Matricula Obligatoria
More information about the rspec-users