title: How to Suppress Warnings in RSpec while running Ruby 2.7.0
body: <p>After installing Ruby 2.7.0 running specs has become a nightmare of warnings such as this one:</p>
  
  <pre><code>/Users/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/node/matchers.rb:835: warning: Using the last argument as keyword parameters is deprecated; maybe ** should be added to the call
  /Users/user/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/capybara-3.30.0/lib/capybara/node/matchers.rb:861: warning: The called method `_set_query_session_options' is defined here
  </code></pre>
  
  <p>Since these warnings are popping out of gems, they really aren't helping and making RSpec output a total mess. </p>
  
  <p>I have tried adding this line to the spec_helper.rb</p>
  
  <pre><code>config.warnings = false
  </code></pre>
  
  <p>And this line to config/environments/test.rb</p>
  
  <pre><code>config.active_support.deprecation = :log
  </code></pre>
  
  <p>But yet, the warnings still pop up by the hundreds. Is there anything I can do to be rid of them?</p>
  
  <p>Running Ruby on Rails 6.0.2.1 and Ruby 2.7.0</p>
  
  <p><strong>NOTE</strong>
  It has been suggested that the answer to this question already exists in <a href="https://stackoverflow.com/questions/5591509/suppress-ruby-warnings-when-running-specs">Suppress Ruby warnings when running specs</a> This looks like a similar question, but the solution provided has no effect. I see all of the warnings.</p>