title: Gem is not checked out. Please run `bundle install` in Heroku
body: <p>I have this configuration in my Gemfile:</p>
  
  <pre><code>group :test do
    # ...
    gem "shoulda-matchers", :git =&gt; "git://github.com/watu/shoulda-matchers.git", :branch =&gt; "do_not_load_minitest"
  end
  </code></pre>
  
  <p>which works fine locally, but when I push to Heroku, when I try to run rake db:migrate, I get this error:</p>
  
  <blockquote>
    <p>git://github.com/watu/shoulda-matchers.git (at do_not_load_minitest) is not checked out. Please run <code>bundle install</code></p>
  </blockquote>
  
  <p>Indeed I don't see it in the output of bundle install being run on Heroku, maybe because it's on the test group and Heroku is not installing the test group. But then, why is it complaining when I run rake db:migrate? should it run in staging env?</p>
  
  <p>I tried switching to the http url and all I got is the same error with another URL:</p>
  
  <blockquote>
    <p><a href="https://github.com/watu/shoulda-matchers.git" rel="nofollow">https://github.com/watu/shoulda-matchers.git</a> (at do_not_load_minitest) is not checked out. Please run <code>bundle install</code></p>
  </blockquote>
  
  <p>Moving the line outside the :test group workarounded the problem. What's the proper solution?</p>