title: Why does default rake task run specs in Rails app?
body: <p>I have one app that runs the specs with just <code>rake</code>, but don't know where or how this task is defined. There are no tasks in lib/tasks.</p>
  
  <p>Part of Gemfile:</p>
  
  <pre><code>group :test do
    gem 'capybara'
    gem 'guard-rspec'
    gem 'rspec-rails'
    gem 'database_cleaner'
    gem 'launchy'
    gem 'oauth2'
    gem 'rack_session_access'
    gem 'factory_girl'
    gem 'webmock'
    gem 'selenium-webdriver'
  end
  </code></pre>
  
  <p>RSpec gems:</p>
  
  <pre><code>guard-rspec (4.5.0)
  rspec (3.1.0)
  rspec-core (3.1.7)
  rspec-expectations (3.1.2)
  rspec-mocks (3.1.3)
  rspec-rails (3.1.0)
  rspec-support (3.1.2)
  </code></pre>
  
  <p>I'm using Rake 10.4.2 and Rails 4.1.6.</p>
  
  <p>Also, when I add:</p>
  
  <pre><code>task :default do
    puts 'No default task.'
  end
  </code></pre>
  
  <p>to the Rakefile, first it runs the specs, and then prints "No default task."</p>
  
  <p>EDIT: Add Rakefile</p>
  
  <pre><code># Add your own tasks in files placed in lib/tasks ending in .rake,
  # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
  
  require File.expand_path('../config/application', __FILE__)
  
  Rails.application.load_tasks
  </code></pre>