You should clean up before AND after each test. Especially with external services. In case your application crashes during a test, when you rerun all the tests you need to make sure you're in a clean state.
Cleaning up after yourself is great until a test errors and causes a whole bunch of other patsy tests to fail. While if your tests assure that everything is setup for them to succeed you won't have that problem.
This playlist is great. I feel like I am starting to understand testing a lot better now. I'm going to dig in and finally learn TDD.
You should clean up before AND after each test. Especially with external services. In case your application crashes during a test, when you rerun all the tests you need to make sure you're in a clean state.
Cleaning up after yourself is great until a test errors and causes a whole bunch of other patsy tests to fail. While if your tests assure that everything is setup for them to succeed you won't have that problem.