title: Gem::InstallError: minitest requires Ruby version ~> 2.2
body: <p>Currently I am getting following error while doing bundle install</p>
  
  <pre><code>Gem::InstallError: minitest requires Ruby version ~&gt; 2.2
  </code></pre>
  
  <p>It is trying to install latest minitest gem version (i.e. 5.12.2 which is released on September 29, 2019) </p>
  
  <p>I checked my both Gemfile and Gemfile.lock files but I didn't found my traces of minitest gem. So I am thinking it is a dependency gem.</p>
  
  <p>I tried to do forcefully install its version to <strong>4.7.5</strong> which is previous version by defining in gem file as <code>gem 'minitest', '4.7.5'</code> But still it is trying to install version <strong>5.12.2</strong>.</p>
  
  <p>System details:</p>
  
  <ul>
  <li>ruby 2.1.5p273</li>
  <li>bundler (1.12.5)</li>
  <li>Rails 3.2.17</li>
  </ul>
  
  <p>So how can I fix this issue.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>After debugging I found that rspec-core has dependency of minitest. </p>