title: Custom VCR request matching options for some specific RSpec tests
body: <p>I have a bunch of RSpec tests in my Rails project that test HTTP calls to external REST API and use VCR cassettes to record requests and respondes. Currently my VCR configuration is the following:</p>
  
  <pre><code>VCR.configure do |c|
    c.cassette_library_dir = 'spec/vcr_cassettes'
    c.hook_into :webmock
    c.configure_rspec_metadata!
  end
  </code></pre>
  
  <p>So request matching rule matches only on HTTP method and URI. I want to change this setting to also match request body:</p>
  
  <pre><code>VCR.configure do |c|
    c.cassette_library_dir = 'spec/vcr_cassettes'
    c.hook_into :webmock
    c.configure_rspec_metadata!
    c.default_cassette_options = {
      :match_requests_on =&gt; [:uri, :method, :body],
    }
  end
  </code></pre>
  
  <p>but since I already have a lot of tests in my project, I would like to do it gradually, activating this new restriction only to some of the tests, so the other ones (with old cassettes) would't break.</p>
  
  <p>Is there any way to pass a parameter to RSpec tests to have a custom request matching rule only for some specific tests or groups of tests?</p>
  
  <p>I imagine something like</p>
  
  <pre><code>it 'reverts transaction', :vcr, :body_matching =&gt; true do
      # something
  end
  </code></pre>
  
  <p>and then change settings dynamically according to <code>body_matching</code> parameter.</p>