[rspec-users] Do you think it would look cleaner?
jftran at rubyfrance.org
Sun Dec 30 03:52:04 EST 2007
2007/12/29, Andrew WC Brown <omen.king at gmail.com>:
> I just see these large blocks of:
> and it would be much clearer if I could list them in a hash instead.
What about :
:milk => 'milk',
:bagel => 'bagel',
:coffee => 'coffee'
}.each do |method, value|
So it doesn't need a #should_receive_the_following method.
More information about the rspec-users