title: How to POST with missing authenticity_token in rspec rails request test?
body: <p>I'm simulating a request coming from an external service, which will not have an authenticity token. I want the test to fail if <code>skip_before_action :verify_authenticity_token</code> is missing.</p>
  
  <p>How do I do this from an Rspec request spec?</p>
  
  <p>Currently I'm using <code>post</code> as below, but it is happily accepted.</p>
  
  <pre><code>post endpoint, my_json_string, {'CONTENT_TYPE' =&gt; "application/json"}
  </code></pre>