fix formatting

This commit is contained in:
Emily Bache
2019-08-07 09:15:46 +02:00
parent adf56c6bd1
commit 74cdedcf6f

View File

@@ -9,7 +9,7 @@ Refactoring is usually driven by a need to make changes. In the book, Fowler add
Automated tests
---------------
In his book Fowler mentions that the first step in refactoring is always the same - to ensure you have a solid set of tests for that section of code. However, Fowler did not include the test code for this example in his book. I have used an ('Approval' testing)[https://medium.com/97-things/approval-testing-33946cde4aa8] approach and added some tests. I find Approval testing to be a powerful technique for rapidly getting existing code under test and to support refactoring. You should review these tests and make sure you understand what they cover and what kinds of refactoring mistakes they would expect to find.
In his book Fowler mentions that the first step in refactoring is always the same - to ensure you have a solid set of tests for that section of code. However, Fowler did not include the test code for this example in his book. I have used an [Approval testing](https://medium.com/97-things/approval-testing-33946cde4aa8) approach and added some tests. I find Approval testing to be a powerful technique for rapidly getting existing code under test and to support refactoring. You should review these tests and make sure you understand what they cover and what kinds of refactoring mistakes they would expect to find.
Acknowledgements
----------------