<p>In test/integration/cors_test.rb:</p>
<pre style='color:#555'>> @@ -0,0 +1,31 @@
> +require File.dirname(__FILE__) + '/../test_helper'
> +
> +class CORSTest < ActionController::IntegrationTest
> +  # https://github.com/rails/rails/commit/ad46884af567d6f8d6d8d777f372c39e81a560ba
</pre>
<p>The implementation comes from <a href="https://github.com/rails/rails/blob/ad46884af567d6f8d6d8d777f372c39e81a560ba/actionpack/lib/action_dispatch/testing/integration.rb#L321-L331">this <code>define_method</code> block</a>.</p>

<p>I doubt we'll need to integration test OPTIONS requests anywhere else; CORS is the only common use of it I know of. So I'd prefer to make the motivation for it more obvious by keeping it close to its use.</p>

            <p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
              —<br>
              Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/138/files#r1899362'>view it on GitHub</a>.
            </p>
            <img src='https://github.com/notifications/beacon/uTRSc6ihLa7Shf84BpiOpmLWAu4oQih75mggZl1E8_nNfp_iEXETdQVsjYwMcApp.gif' height='1' width='1'>