#Problem Solving
- Writing a test will often help drive your decision making. If you later realize that some other piece of the application needs to be implemented first, it’s o.k. to skip the test (put an
x
in front of theit
in RSpec, or writeskip
in the first line of anit
block. - If you’re having trouble deciding which test to write, ask yourself if there are any relationships where one thing depends on the existence of another?
- If so, do the thing that needs to be done first.
- If not, just pick one! Maintain a bias towards action. Often in the process of working on one aspect of an application you will create a tool that makes some other easier. Alternatively, you will work on one part of an application and realize it’s more dependent on other functionality than you initially realized. This doesn’t mean that your time has been wasted. Even if you need to reassess the code that you’ve written up to this point, it’s lik