[rspec-users] Design Pattern proposal for better Rails development
josephwilk at joesniff.co.uk
Wed Nov 5 10:04:35 EST 2008
Fernando Perez wrote:
>> I don't think this is a problem.
> Don't you find it painful to go through each controller and/or each
> controller spec to correct the name of the method that has just changed?
> So you don't mind having to change in many different places
> should_receive(:find_if_purchased) to
> should_receive(:find_if_subscribed) ?
I think as David mentioned 'search and replace' in an IDE helps ensure
that is not painful. I'd even go so far as to say its quite fun, buts
thats just me :)
More information about the rspec-users