title: Spring gem loaded in wrong environment
body: <p>Why does my spring gem load in the wrong (or all) environment(s)? </p>
  
  <p>I have this in my Gemfile and spring gem is not listed anywhere else in the file:</p>
  
  <pre><code>group :development do
    gem 'listen', '~&gt; 3.1.5'
    # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
    gem 'spring'
    gem 'spring-watcher-listen', '~&gt; 2.0.0'
  end
  </code></pre>
  
  <p>When I ran <code>bundle exec rails console test</code> (for the <code>test</code> environment), spring processes started and the <code>Listen</code> module was loaded in the rails console. I made sure all spring processes were stopped beforehand.</p>
  
  <p>To do a sanity check, I removed the whole development group above and bundled.  Spring and listen gems were no longer loaded, as I expected.</p>