title: Why is my minitest.rake running twice when I enter rake into terminal?
body: <p>I created a minitest.rake, as per ryan bates railscast (<a href="http://railscasts.com/episodes/327-minitest-with-rails" rel="noreferrer">http://railscasts.com/episodes/327-minitest-with-rails</a>).</p>
  
  <p>When I run rake in the terminal, the test runs, and then runs again before resetting the command line.</p>
  
  <pre><code>require "rake/testtask"
  
  Rake::TestTask.new(:test =&gt; "db:test:prepare") do |t|
    t.libs &lt;&lt; "test"
    t.pattern = "test/**/*_test.rb"
  end
  
  task default: :test
  </code></pre>