title: require can't find an .rb file that's the same directory
body: <p>How exactly does the require command in Ruby work?  I tested it with the following two files that are in the same directory.</p>
  
  <p>test.rb </p>
  
  <pre><code>require 'requirements'
  square(2)
  </code></pre>
  
  <p>requirements.rb</p>
  
  <pre><code>def square(x)
      x*x
  end
  </code></pre>
  
  <p>But when I run ruby test.rb while I'm in the same directory as the files "test.rb" and "requirements.rb", I get the error:</p>
  
  <pre><code>/usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- requirements (LoadError)
  from /usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
  from test.rb:1:in `&lt;main&gt;'
  </code></pre>
  
  <p>which I think means it can't find the requirements.rb file.  But it's in the same directory as test.rb!  How does one fix this?</p>
  
  <p>Much thanks in advance.  I apologize for such noob questions.</p>