title: Rails and RSpec: `rake spec` runs all specs twice
body: <p>I set up a new Rails 4 app using RSpec. But when running <code>rake rspec</code>, all the examples are run twice:</p>
  
  <pre><code>rake spec
  [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
  /Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/models/member_spec.rb ./spec/requests/members_spec.rb ./spec/routing/members_routing_spec.rb
  [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
   11/11 |============================================ 100 ============================================&gt;| Time: 00:00:00 
  
  Finished in 0.21233 seconds
  11 examples, 0 failures
  
  Randomized with seed 15954
  
  /Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/ruby -S rspec ./spec/controllers/dashboards_controller_spec.rb ./spec/models/member_spec.rb ./spec/requests/members_spec.rb ./spec/routing/members_routing_spec.rb
  [deprecated] I18n.enforce_available_locales will default to true in the future. If you really want to skip validation of your locale you can set I18n.enforce_available_locales = false to avoid this message.
   11/11 |============================================ 100 ============================================&gt;| Time: 00:00:00 
  
  Finished in 0.18831 seconds
  11 examples, 0 failures
  
  Randomized with seed 24248
  </code></pre>
  
  <p>I have found some other (old) questions about this, but couldn't find a solution for me. How should I try to debug this? Running <code>rspec</code> works like a charm, but I'm eager to find out what's the problem here.</p>
  
  <p>Here's my <code>spec_helper.rb</code>:
  <a href="https://github.com/jmuheim/transition/blob/master/spec/spec_helper.rb" rel="noreferrer">https://github.com/jmuheim/transition/blob/master/spec/spec_helper.rb</a></p>
  
  <p>And here's the original Rails project:
  <a href="https://github.com/jmuheim/transition" rel="noreferrer">https://github.com/jmuheim/transition</a></p>
  
  <p><strong>Update</strong></p>
  
  <p>I found that the <code>spec</code> rake task seems to be defined twice (notice the <code>/</code> that separates the description of each task):</p>
  
  <pre><code>$ rake -T | grep spec
  ...
  rake spec                               # Run all specs in spec directory (excluding plugin specs) / Run RSpec code examples
  ...
  </code></pre>
  
  <p>One of them is described with <code>Run all specs in spec directory (excluding plugin specs)</code>, one with <code>Run RSpec code examples</code>.</p>
  
  <p><code>Run RSpec code examples</code> seems to come from <a href="https://github.com/rspec/rspec-core/blob/master/lib/rspec/core/rake_task.rb#L72" rel="noreferrer"><code>rspec/core/rake_task.rb</code></a>. <code>Run all specs in spec directory (excluding plugin specs)</code> seems to come from <a href="https://github.com/rspec/rspec-rails/blob/master/lib/rspec/rails/tasks/rspec.rake#L12" rel="noreferrer"><code>rspec/rails/tasks/rspec.rake</code></a>.</p>
  
  <p>It seems to me that only one of them should exist?!</p>
  
  <p><strong>Update 2</strong></p>
  
  <p>It seems to be a problem with <code>rspec-rails</code> being in both the <code>test</code> and <code>development</code> groups. I added an issue about this here: <a href="https://github.com/rspec/rspec-rails/issues/904" rel="noreferrer">https://github.com/rspec/rspec-rails/issues/904</a></p>