title: `require': cannot load such file - Ruby + Rspec
body: <p>Im having a trouble with loading dependences in a ruby app (non-rails).</p>
  
  <p>Its folder tree</p>
  
  <p>project</p>
  
  <pre><code>  -&gt; bin
    -&gt; lib
      -&gt; modules
        -&gt; file1.rb
        -&gt; file2.rb
    -&gt; spec
      -&gt; file2_spec.rb
  </code></pre>
  
  <p>My file is</p>
  
  <pre><code>require 'file1'
  
  module File2
  end
  </code></pre>
  
  <p>My spec is</p>
  
  <pre><code>require 'spec_helper'
  require_relative '../lib/modules/file2'
  </code></pre>
  
  <p>In the error message it shows </p>
  
  <p>rspec spec/query_util_spec.rb
  /home/gustavo/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- <strong>file1</strong> (LoadError)</p>
  
  <p>I tried to add "require_relative" to file1 in my spec and still does not work.</p>
  
  <p>I'll be grateful someone give me some directions</p>