title: Using local gems with Bundler
body: <p>I'm developing a gem in parallel with my main app. Since I'm making frequent changes, I want to reference that gem from my main project, without having to repeatedly build and release it.</p>
  
  <p>My Gemfile contains the line:</p>
  
  <pre><code>gem 'my_gem', :path =&gt; '/Users/andy/path/to/my_gem'
  </code></pre>
  
  <p>However, when I run my app's tests using bundle exec, one tests fails and the backtrace shows that the wrong gem location is being used:</p>
  
  <pre><code>/Users/andy/.rvm/gems/ruby-1.9.2-p290/gems/my_gem-0.6.0/lib/my_gem/page.rb:23:in `...'
  </code></pre>
  
  <p>What am I doing wrong?</p>
  
  <p>I'm using Bundler 1.1.0</p>
  
  <p>Update - excerpt from Gemfile.lock:</p>
  
  <pre><code>PATH
    remote: /Users/andy/path/to/my_gem
    specs:
      my_gem (0.6.0)
        activesupport (~&gt; 3.0)
        capybara
  
  DEPENDENCIES
    my_gem!
  </code></pre>
  
  <p>It seems wrong that my_gem has a version number beside it, shouldn't it just use the latest code at that path?</p>