Continuing with the Video store refactoring from the book…
After the success of extracting
amountFor: I opted to use the refactoring
browser’s “Move to another class” functionality to move the method across to
After choosing the destination class…
I ended up with
amountFor: on the Rental class.
Unfortunately, this broke my tests:
The Pharo traceback was fairly clear:
But, by clicking on the Create button I got to fix it fairly easily.
And adding an interim method to keep my tests passing: