title: Why can't IRB locate the file to "require"?
body: <p>I have a file in a directory <code>test/</code>.
  The file is "test.rb".</p>
  
  <p>When I start IRB and type:</p>
  
  <pre><code>require 'test'
  require_relative 'test'
  </code></pre>
  
  <p>It returns:</p>
  
  <pre><code>LoadError: cannot load such file -- test
  </code></pre>
  
  <p>and:</p>
  
  <pre><code>LoadError: cannot infer basepath
  </code></pre>
  
  <p>Is my Ruby messed up?</p>