title: Creating and using an Elixir helpers module in Phoenix
body: <p>I have a group of acceptance tests I've created in my faux blog phoenix app.  There's some duplicated logic between them I'd like to move to a helpers module to keep things DRY.  </p>
  
  <p>Here is the directory structure:</p>
  
  <pre><code>test/acceptance/post
  ├── create_test.exs
  ├── delete_test.exs
  ├── helpers.exs
  ├── index_test.exs
  └── update_test.exs
  </code></pre>
  
  <p>The <code>helpers.exs</code> file is where I'd like to stick the duplicated acceptance test logic.  It looks something like:</p>
  
  <pre class="lang-rb prettyprint-override"><code>defmodule Blog.Acceptance.Post.Helpers do
    def navigate_to_posts_index_page do
      # some code
    end
  end
  </code></pre>
  
  <p>Then in one of my test files, say <code>index_test.exs</code>, I'd like to import the helpers module to use it's methods:</p>
  
  <pre class="lang-rb prettyprint-override"><code>defmodule Blog.Acceptance.Post.IndexTest do 
    import Blog.Acceptance.Post.Helpers
  end
  </code></pre>
  
  <p>However, I'm getting this error:</p>
  
  <blockquote>
    <p>** (CompileError) test/acceptance/post/index_test.exs:7: module Blog.Acceptance.Post.Helpers is not loaded and could not be found</p>
  </blockquote>
  
  <p>How do I get access to or load the helper module in my test files?</p>