title: require lib in RSpec with Ruby 1.9.2 brings "no such file to load"
body: <p>I am trying to upgrade one of my Rails projects to <code>Ruby 1.9.2</code>. All went pretty well, but one RSpec test broke. In this test I <code>require</code> a Ruby <code>lib</code>:</p>
  
  <pre class="lang-ruby prettyprint-override"><code># file spec/models/my_lib_spec.rb
  require 'spec_helper'
  require 'lib/services/my_lib'
  
  describe "MyLib" do
  
    it "should do something" do
  ...
  </code></pre>
  
  <p>The lib looks like this:</p>
  
  <pre class="lang-ruby prettyprint-override"><code># file lib/services/my_lib.rb
  class MyLib
  
    def self.do_something
    ...
  </code></pre>
  
  <p>In Ruby 1.8.7 (REE) the test worked well:</p>
  
  <pre><code>$ ruby -v   
  ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.1.0], MBARI 0x6770, Ruby
  Enterprise Edition 2011.03
  $ rspec ./spec/models/my_lib_spec.rb
  ..
  
  Finished in 1.4 seconds
  2 examples, 0 failures
  </code></pre>
  
  <p>In Ruby 1.9.2 I get an Error <code>no such file to load</code>:</p>
  
  <pre><code>$ ruby -v
  ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
  $ rspec ./spec/models/my_lib_spec.rb
  /Users/tmangner/.rvm/gems/ruby-1.9.2-p290@madgoal/gems/activesupport-
  3.2.2/lib/active_support/dependencies.rb:251:in `require': no such file
  to load -- lib/services/my_lib (LoadError)
  </code></pre>
  
  <p>I have no clue, what keeps Ruby 1.9 from finding the lib.</p>