title: How to access NSDocumentDirectory in unit tests (OCUnit)
body: <p>I'm trying to run my app in OCUnit environment. It uses a sqlite database and I'm having it in the app's documents folder. </p>
  
  <p>However when running from the tests, the path for the database is set to:</p>
  
  <pre><code>~/Library/Application Support/iPhone Simulator/6.0/Documents/Test.sqlite
  </code></pre>
  
  <p>While the same code gives me a path of </p>
  
  <pre><code>~/Library/Application Support/iPhone Simulator/6.0/Applications/34536EFB-005A-44A1-AD99-07D6B9F6888B/Documents/Test.sqlite
  </code></pre>
  
  <p>when I run it on the simulator. </p>
  
  <p>How can I use NSDocumentDirectory in my tests and get what I need? </p>