div><p>Alternatively, if you don&#39;t want to allow rescue on everything, you can tag individual scenarios with <code>@allow-rescue</code> tag.</p><div class="language-ruby vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">ruby</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">@allow</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">-rescue</