This commit is contained in:
Pete Matsyburka
2026-05-28 10:18:45 +03:00
parent 504c42646b
commit 51743f1359
+1 -3
View File
@@ -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')