title: Bundler ignores groups in rails apps
body: <p>This problem was fixed in 0.9.8, but seems to have recurred in the 1.x branch.</p>
  
  <p>In my Gemfile I have a group for the test and development environments that use the rspec gems.
  On my production server rspec is not installed.
  I used the command <code>bundle install --without test development</code> in my
  rails app</p>
  
  <p>Starting my rails app in production mode gives the exception:</p>
  
  <blockquote>
    <p>Could not find gem 'rspec (>= 0)' in any of the gem sources listed in
    your Gemfile.</p>
  </blockquote>
  
  <p>If I comment out the test group the same error happens with the development group.</p>
  
  <p>The same problem exists if I start in development mode, then it tries to load the gems in the test group.</p>
  
  <p>It seems that bundler completely ignores the environment groups and tries to load all gems in Gemfile:</p>
  
  <pre><code>    group :test do
        gem "rspec"
      end
  
      group :development do
        gem "rspec-rails"
      end
  
  
    versions:
    bundle 1.0.15
    rails 3.0.7
    ruby 1.9.2-p180
  </code></pre>