From 2822b0086a2238e13df9f23008bc1f4808adafbd Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Sun, 3 Dec 2023 20:24:43 +0200 Subject: [PATCH] fix spec --- spec/system/template_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/system/template_spec.rb b/spec/system/template_spec.rb index 527fb4df..35cd4bad 100644 --- a/spec/system/template_spec.rb +++ b/spec/system/template_spec.rb @@ -42,10 +42,10 @@ RSpec.describe 'Template' do visit template_path(template) end - it 'removes a template' do + it 'archives a template' do expect do accept_confirm('Are you sure?') do - click_button 'Remove' + click_button 'Archive' end end.to change { Template.active.count }.by(-1)