From 51743f1359ebe3bd99eaeef1c5b183f801a07e79 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Thu, 28 May 2026 10:18:45 +0300 Subject: [PATCH] fix spec --- spec/system/template_spec.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/spec/system/template_spec.rb b/spec/system/template_spec.rb index 83aa0f8d..438a131d 100644 --- a/spec/system/template_spec.rb +++ b/spec/system/template_spec.rb @@ -42,9 +42,7 @@ RSpec.describe 'Template' do it 'archives a template' do expect do - accept_confirm('Are you sure?') do - click_button 'Archive' - end + click_button 'Archive' end.to change { Template.active.count }.by(-1) expect(page).to have_content('Template has been archived')